diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-03-25 19:36:45 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-03-25 19:36:45 +0000 |
commit | 6ddf2730b2232e6209541c76e97d09ea11e94181 (patch) | |
tree | 46f70bfeeb43883ae607abc4f4b27273c8ab2d88 /Makefile | |
parent | e145ab5eedffe7ed68fa9ee24ba4e64513aa0459 (diff) |
* Include the .config file. That adds some useful information.
* If we have devfs support, assume we have dynamic file system, but not
UDEV rules.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4082 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -41,9 +41,16 @@ endif KVERS_MAJ:=$(shell echo $(KVERS) | cut -d. -f1-2) KINCLUDES:=$(KSRC)/include +# We use the kernel's .config file as an indication that the KSRC +# directory is indeed a valid and configured kernel source (or partial +# source) directory. +# +# We also source it, as it has the format of Makefile variables list. +# Thus we will have many CONFIG_* variables from there. KCONFIG:=$(KSRC)/.config ifneq (,$(wildcard $(KCONFIG))) HAS_KSRC=yes + include $(KCONFIG) else HAS_KSRC=no endif @@ -66,6 +73,11 @@ ifeq ($(BUILDVER),linux26) endif endif +ifneq (,$(findstring $(CONFIG_DEVFS_FS),y m)) + DYNFS=yes + HAS_DEVFS=yes +endif + # If the file .zaptel.makeopts is present in your home directory, you can # include all of your favorite menuselect options so that every time you download # a new version of Asterisk, you don't have to run menuselect to set them. |