summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)/
+