summaryrefslogtreecommitdiff
path: root/wct4xxp
diff options
context:
space:
mode:
authorfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-11-08 05:08:31 +0000
committerfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-11-08 05:08:31 +0000
commitf764d08ee225f7081ebc32d58b0d709a0b1dbae5 (patch)
tree64519d56ef89fa43a134a7b6554acd756deda63e /wct4xxp
parentf6b015149278d8c89f5c7fab85e5dbb0e7014cb6 (diff)
Don't build the firmware headers unless needed. This shaves ~3.5 seconds off build time.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1570 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp')
-rw-r--r--wct4xxp/Kbuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/wct4xxp/Kbuild b/wct4xxp/Kbuild
index 218eaf5..0fc1d76 100644
--- a/wct4xxp/Kbuild
+++ b/wct4xxp/Kbuild
@@ -1,8 +1,22 @@
# yes, this is redundant... the Kbuild system is changing to hostprogs-y,
# but we need to be able to support older verions as well
+
+# If hotplug firmware loading is disabled, do our header based stuff
+ifeq ($(HOTPLUG_FIRMWARE),no)
+
host-progs := fw2h
hostprogs-y := fw2h
+FIRMWARE := $(obj)/vpmoct128_fw.h $(obj)/vpmoct064_fw.h
+
+$(obj)/vpmoct128_fw.h: $(src)/OCT6114-128D.ima $(obj)/fw2h
+ $(obj)/fw2h $< $@
+
+$(obj)/vpmoct064_fw.h: $(src)/OCT6114-64D.ima $(obj)/fw2h
+ $(obj)/fw2h $< $@
+
+endif
+
obj-m += wct4xxp.o
EXTRA_CFLAGS := -I$(src)/.. $(shell $(src)/../oct612x/octasic-helper cflags $(src)/../oct612x) -Wno-undef
@@ -12,13 +26,7 @@ wct4xxp-objs := base.o vpm450m.o $(shell $(src)/../oct612x/octasic-helper object
$(obj)/base.o: $(src)/vpm450m.h $(src)/wct4xxp.h
$(obj)/base.o: $(src)/../zaptel.h
-$(obj)/vpm450m.o: $(obj)/vpmoct128_fw.h $(obj)/vpmoct064_fw.h $(src)/vpm450m.h
+$(obj)/vpm450m.o: $(FIRMWARE) $(src)/vpm450m.h
$(obj)/vpm450m.o: $(src)/../oct612x/include/oct6100api/oct6100_api.h
-$(obj)/vpmoct128_fw.h: $(src)/OCT6114-128D.ima $(obj)/fw2h
- $(obj)/fw2h $< $@
-
-$(obj)/vpmoct064_fw.h: $(src)/OCT6114-64D.ima $(obj)/fw2h
- $(obj)/fw2h $< $@
-
clean-files := vpmoct128_fw.h vpmoct064_fw.h