summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus/Kbuild
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2012-04-02 14:05:17 +0000
committerShaun Ruffell <sruffell@digium.com>2012-04-02 14:05:17 +0000
commit8b55e255fe5c5539d5550d0ebf2624e44275b6ae (patch)
treebba924b9a869c4e5180117a1a4f87df5882c7599 /drivers/dahdi/voicebus/Kbuild
parent24b257996146e83548de1f1db7c9afa5df2fd179 (diff)
wctdm24xxp, wcte12xp: Allow VPMOCT032 firmware to be compiled into driver.
Enables the driver to update firmware on systems that do not have the firmware loader configured / enabled (Linux config option CONFIG_FW_LOADER). Compiling the firmware into the driver increase the memory footprint by around ~440K. Internal-Issue-ID: DAHDI-963 Reported-and-Tested-by: Guenther Kelleter Signed-off-by: Shaun Ruffell <sruffell@digium.com> Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10618 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10620 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus/Kbuild')
-rw-r--r--drivers/dahdi/voicebus/Kbuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/dahdi/voicebus/Kbuild b/drivers/dahdi/voicebus/Kbuild
index b8b23ff..6266653 100644
--- a/drivers/dahdi/voicebus/Kbuild
+++ b/drivers/dahdi/voicebus/Kbuild
@@ -2,4 +2,16 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_VOICEBUS) += dahdi_voicebus.o
dahdi_voicebus-objs := voicebus.o GpakCust.o GpakApi.o voicebus_net.o vpmoct.o
-EXTRA_CFLAGS := -I$(src)/.. -Wno-undef
+FIRM_DIR := ../firmware
+
+ifneq ($(HOTPLUG_FIRMWARE),yes)
+dahdi_voicebus-objs += $(FIRM_DIR)/dahdi-fw-vpmoct032.o
+else
+ EXTRA_CFLAGS+=-DHOTPLUG_FIRMWARE
+endif
+
+EXTRA_CFLAGS += -I$(src)/.. -Wno-undef
+
+$(obj)/$(FIRM_DIR)/dahdi-fw-vpmoct032.o: $(obj)/voicebus.o
+ $(MAKE) -C $(obj)/$(FIRM_DIR) dahdi-fw-vpmoct032.o
+