summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-25 18:03:04 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-25 18:03:04 +0000
commit30c4f7db39a877418cdbc279d272d256e5b11fa3 (patch)
treec2839bdfc9c3fecf75447f416d0e8299c8a4dc03 /Makefile
parentd1e07d2b72bd0252996932f1e0ce74823b25db24 (diff)
Support MODULES_EXTRA and SUBDIRS_EXTRA to add extra modules from the
make command line. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4829 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1438482..8c093bd 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@ else
UNAME_M:=$(DEB_HOST_GNU_TYPE)
endif
+DAHDI_MODULES_EXTRA:=$(MODULES_EXTRA:%=%.o) $(SUBDIRS_EXTRA:%=%/)
+
# If you want to build for a kernel other than the current kernel, set KVERS
ifndef KVERS
KVERS:=$(shell uname -r)
@@ -57,7 +59,7 @@ 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)
+KMAKE=$(MAKE) -C $(KSRC) ARCH=$(ARCH) SUBDIRS=$(PWD)/drivers/dahdi DAHDI_INCLUDE=$(PWD)/include DAHDI_MODULES_EXTRA="$(DAHDI_MODULES_EXTRA)" HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE)
ifneq (,$(wildcard $(DESTDIR)/etc/udev/rules.d))
DYNFS:=yes