From a7da1ef563ed6fa47aad2e43ecafabc5cd1265c6 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 25 Aug 2008 18:03:04 +0000 Subject: 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 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3