summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-14 19:15:41 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-14 19:15:41 +0000
commit10e8c492675d4ee10898ea8c6c5f920cbec41608 (patch)
tree8ef973b2dfe8e4c45f9f60b36da8eec9cf7c7f47
parent6cd2c556f4acd05be03582d508e9cb4d224e669a (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--Makefile7
-rw-r--r--drivers/dahdi/xpp/firmwares/Makefile18
2 files changed, 23 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9b5438a..17b35bc 100644
--- a/Makefile
+++ b/Makefile
@@ -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)/
+