[zaptel-commits] tzafrir: branch 1.4 r4082 - /branches/1.4/Makefile

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue Mar 25 14:36:46 CDT 2008


Author: tzafrir
Date: Tue Mar 25 14:36:45 2008
New Revision: 4082

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4082
Log:
* Include the .config file. That adds some useful information.
* If we have devfs support, assume we have dynamic file system, but not
  UDEV rules.

Modified:
    branches/1.4/Makefile

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile?view=diff&rev=4082&r1=4081&r2=4082
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Tue Mar 25 14:36:45 2008
@@ -41,9 +41,16 @@
 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
@@ -64,6 +71,11 @@
   ifeq (yes,$(HAS_KSRC))
     HOTPLUG_FIRMWARE:=$(shell if grep -q '^CONFIG_FW_LOADER=[ym]' $(KCONFIG); then echo "yes"; else echo "no"; fi)
   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




More information about the zaptel-commits mailing list