diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-08-18 23:24:19 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-08-18 23:24:19 +0000 |
commit | 9f13e471dd1e11d50c66e9c3206837fc8e489315 (patch) | |
tree | a3d4841ee1c42c01cf435b85b8b1201535b2047b /Makefile | |
parent | 341a3ee6b14e3d9fd2d722ec64952ae1ce9c3ff2 (diff) |
minor cleanups, and allow DAHDI_BUILD_ALL to be overriden on the command line
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4788 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -40,10 +40,10 @@ KINCLUDES:=$(KSRC)/include # Thus we will have many CONFIG_* variables from there. KCONFIG:=$(KSRC)/.config ifneq (,$(wildcard $(KCONFIG))) - HAS_KSRC=yes + HAS_KSRC:=yes include $(KCONFIG) else - HAS_KSRC=no + HAS_KSRC:=no endif # Set HOTPLUG_FIRMWARE=no to override automatic building with hotplug support @@ -53,15 +53,17 @@ ifeq (yes,$(HAS_KSRC)) HOTPLUG_FIRMWARE:=$(shell if grep -q '^CONFIG_FW_LOADER=[ym]' $(KCONFIG); then echo "yes"; else echo "no"; fi) endif -MODULE_ALIASES=wcfxs wctdm8xxp wct2xxp +MODULE_ALIASES:=wcfxs wctdm8xxp wct2xxp + +DAHDI_BUILD_ALL:=m KMAKE=$(MAKE) -C $(KSRC) ARCH=$(ARCH) SUBDIRS=$(PWD)/drivers/dahdi DAHDI_INCLUDE=$(PWD)/include HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE) ifneq (,$(wildcard $(DESTDIR)/etc/udev/rules.d)) - DYNFS=yes + DYNFS:=yes endif -ROOT_PREFIX= +ROOT_PREFIX:= ifneq ($(wildcard .version),) DAHDIVERSION:=$(shell cat .version) @@ -78,7 +80,7 @@ ifeq (no,$(HAS_KSRC)) echo "You do not appear to have the sources for the $(KVERS) kernel installed." exit 1 endif - $(KMAKE) modules DAHDI_BUILD_ALL=m + $(KMAKE) modules DAHDI_BUILD_ALL=$(DAHDI_BUILD_ALL) include/dahdi/version.h: FORCE @DAHDIVERSION="${DAHDIVERSION}" build_tools/make_version_h > $@.tmp |