diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-08-14 19:15:41 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-08-14 19:15:41 +0000 |
commit | e202df46e97337de31d0c89b0ef5c109e38d92d9 (patch) | |
tree | 8ef973b2dfe8e4c45f9f60b36da8eec9cf7c7f47 | |
parent | 1721a48ad4d52ca9a483311a632ee203e1c37a24 (diff) |
Also install Astribank firmwares and init scripts to /usr/share/dahdi .
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4781 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | drivers/dahdi/xpp/firmwares/Makefile | 18 |
2 files changed, 23 insertions, 2 deletions
@@ -92,7 +92,7 @@ prereq: include/dahdi/version.h stackcheck: checkstack modules ./checkstack kernel/*.ko kernel/*/*.ko -install: all install-modules install-devices install-include install-firmware +install: all install-modules install-devices install-include install-firmware install-xpp-firm @echo "###################################################" @echo "###" @echo "### DAHDI installed successfully." @@ -109,6 +109,9 @@ install-modconf: /sbin/update-modules ; \ fi +install-xpp-firm: + $(MAKE) -C drivers/dahdi/xpp/firmwares install + install-firmware: ifeq ($(HOTPLUG_FIRMWARE),yes) $(MAKE) -C drivers/dahdi/firmware hotplug-install DESTDIR=$(DESTDIR) HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE) @@ -225,6 +228,6 @@ firmware-download: test: ./test-script $(DESTDIR)/lib/modules/$(KVERS) dahdi -.PHONY: distclean dist-clean clean all install devices modules stackcheck install-udev update install-modules install-include uninstall-modules firmware-download +.PHONY: distclean dist-clean clean all install devices modules stackcheck install-udev update install-modules install-include uninstall-modules firmware-download install-xpp-firm FORCE: diff --git a/drivers/dahdi/xpp/firmwares/Makefile b/drivers/dahdi/xpp/firmwares/Makefile new file mode 100644 index 0000000..dcf6a4e --- /dev/null +++ b/drivers/dahdi/xpp/firmwares/Makefile @@ -0,0 +1,18 @@ +# Install firmwares and initialization scripts for the Astribank +# drivers + +FIRMWARES = USB_FW.hex FPGA_FXS.hex FPGA_1141.hex FPGA_1151.hex +PROTO_VER = 30 +SCRIPTS_BASE = $(patsubst %,init_card_%_$(PROTO_VER),1 2 3 4) +SCRIPTS = $(SCRIPTS_BASE:%=../%) +TARGET = $(DESTDIR)/usr/share/dahdi + +all: + +clean: + +install: + mkdir -p $(TARGET) + install $(SCRIPTS) $(TARGET)/ + install -m 644 ../XppConfig.pm $(FIRMWARES) $(TARGET)/ + |