summaryrefslogtreecommitdiff
path: root/drivers/dahdi/firmware
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2008-06-22 02:28:56 +0000
committerSteve Murphy <murf@digium.com>2008-06-22 02:28:56 +0000
commite7d1a0afc9dbc3590551274f41be629ae12625f8 (patch)
treecb147b3402638be6b6da23aec188feed0a3af36a /drivers/dahdi/firmware
parentd653250809bfefc4427705e3d9fe45c54586ccf3 (diff)
This is most likely a highly irresponsible commit, but
I hacked this makefile so I could do a 'sudo make install', and not have it die when I hit the firmware download and install. Two problems. The tar files aren't extracted to get the .bin; and the tarfiles that are downloaded have the zaptel-* file names, not the expected dahdi-* file names. I most likely did it all wrong. I leave it to an expert to do things correctly. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4442 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/firmware')
-rw-r--r--drivers/dahdi/firmware/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/dahdi/firmware/Makefile b/drivers/dahdi/firmware/Makefile
index ec74a11..9278e04 100644
--- a/drivers/dahdi/firmware/Makefile
+++ b/drivers/dahdi/firmware/Makefile
@@ -81,11 +81,15 @@ ifeq ($(HOTPLUG_FIRMWARE),yes)
ifeq ($(shell if ( [ -d $(DESTDIR)/usr/lib/hotplug/firmware ] && ! [ -f $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-oct6114-064-$(OCT6114_064_VERSION) ] ) || ( [ -d $(DESTDIR)/lib/firmware ] && ! [ -f $(DESTDIR)/lib/firmware/.dahdi-fw-oct6114-064-$(OCT6114_064_VERSION) ] ); then echo "yes"; else echo "no"; fi),yes)
@echo "Installing dahdi-fw-oct6114-064.bin to hotplug firmware directories"
if [ -d $(DESTDIR)/usr/lib/hotplug/firmware ]; then \
+ tar xzvf dahdi-fw-oct6114-064-$(OCT6114_064_VERSION).tar.gz; \
+ mv zaptel-fw-oct6114-064.bin dahdi-fw-oct6114-064.bin; \
install -m 644 dahdi-fw-oct6114-064.bin $(DESTDIR)/usr/lib/hotplug/firmware && \
(rm -rf $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-oct6114-064-*; \
touch $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-oct6114-064-$(OCT6114_064_VERSION)); \
fi
if [ -d $(DESTDIR)/lib/firmware ]; then \
+ tar xzvf dahdi-fw-oct6114-064-$(OCT6114_064_VERSION).tar.gz; \
+ mv zaptel-fw-oct6114-064.bin dahdi-fw-oct6114-064.bin; \
install -m 644 dahdi-fw-oct6114-064.bin $(DESTDIR)/lib/firmware && \
(rm -rf $(DESTDIR)/lib/firmware/.dahdi-fw-oct6114-064-*; \
touch $(DESTDIR)/lib/firmware/.dahdi-fw-oct6114-064-$(OCT6114_064_VERSION)); \
@@ -96,11 +100,15 @@ endif
ifeq ($(shell if ( [ -d $(DESTDIR)/usr/lib/hotplug/firmware ] && ! [ -f $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-oct6114-128-$(OCT6114_128_VERSION) ] ) || ( [ -d $(DESTDIR)/lib/firmware ] && ! [ -f $(DESTDIR)/lib/firmware/.dahdi-fw-oct6114-128-$(OCT6114_128_VERSION) ] ); then echo "yes"; else echo "no"; fi),yes)
@echo "Installing dahdi-fw-oct6114-128.bin to hotplug firmware directories"
if [ -d $(DESTDIR)/usr/lib/hotplug/firmware ]; then \
+ tar xzvf dahdi-fw-oct6114-128-$(OCT6114_128_VERSION).tar.gz; \
+ mv zaptel-fw-oct6114-128.bin dahdi-fw-oct6114-128.bin; \
install -m 644 dahdi-fw-oct6114-128.bin $(DESTDIR)/usr/lib/hotplug/firmware && \
(rm -rf $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-oct6114-128-*; \
touch $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-oct6114-128-$(OCT6114_128_VERSION)); \
fi
if [ -d $(DESTDIR)/lib/firmware ]; then \
+ tar xzvf dahdi-fw-oct6114-128-$(OCT6114_128_VERSION).tar.gz; \
+ mv zaptel-fw-oct6114-128.bin dahdi-fw-oct6114-128.bin; \
install -m 644 dahdi-fw-oct6114-128.bin $(DESTDIR)/lib/firmware && \
(rm -rf $(DESTDIR)/lib/firmware/.dahdi-fw-oct6114-128-*; \
touch $(DESTDIR)/lib/firmware/.dahdi-fw-oct6114-128-$(OCT6114_128_VERSION)); \
@@ -111,11 +119,15 @@ endif
ifeq ($(shell if ( [ -d $(DESTDIR)/usr/lib/hotplug/firmware ] && ! [ -f $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-tc400m-$(TC400M_VERSION) ] ) || ( [ -d $(DESTDIR)/lib/firmware ] && ! [ -f $(DESTDIR)/lib/firmware/.dahdi-fw-tc400m-$(TC400M_VERSION) ] ); then echo "yes"; else echo "no"; fi),yes)
@echo "Installing dahdi-fw-tc400m.bin to hotplug firmware directories"
if [ -d $(DESTDIR)/usr/lib/hotplug/firmware ]; then \
+ tar xzvf dahdi-fw-tc400m-$(TC400M_VERSION).tar.gz; \
+ mv zaptel-fw-tc400m.bin dahdi-fw-tc400m.bin; \
install -m 644 dahdi-fw-tc400m.bin $(DESTDIR)/usr/lib/hotplug/firmware && \
(rm -rf $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-tc400m-*; \
touch $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-tc400m-$(TC400M_VERSION)); \
fi
if [ -d $(DESTDIR)/lib/firmware ]; then \
+ tar xzvf dahdi-fw-tc400m-$(TC400M_VERSION).tar.gz; \
+ mv zaptel-fw-tc400m.bin dahdi-fw-tc400m.bin; \
install -m 644 dahdi-fw-tc400m.bin $(DESTDIR)/lib/firmware && \
(rm -rf $(DESTDIR)/lib/firmware/.dahdi-fw-tc400m-*; \
touch $(DESTDIR)/lib/firmware/.dahdi-fw-tc400m-$(TC400M_VERSION)); \
@@ -126,11 +138,15 @@ endif
ifeq ($(shell if ( [ -d $(DESTDIR)/usr/lib/hotplug/firmware ] && ! [ -f $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-vpmadt032-$(VPMADT032_VERSION) ] ) || ( [ -d $(DESTDIR)/lib/firmware ] && ! [ -f $(DESTDIR)/lib/firmware/.dahdi-fw-vpmadt032-$(VPMADT032_VERSION) ] ); then echo "yes"; else echo "no"; fi),yes)
@echo "Installing dahdi-fw-vpmadt032.bin to hotplug firmware directories"
if [ -d $(DESTDIR)/usr/lib/hotplug/firmware ]; then \
+ tar xzvf dahdi-fw-vpmadt032-$(VPMADT032_VERSION).tar.gz; \
+ mv zaptel-fw-vpmadt032.bin dahdi-fw-vpmadt032.bin; \
install -m 644 dahdi-fw-vpmadt032.bin $(DESTDIR)/usr/lib/hotplug/firmware && \
(rm -rf $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-vpmadt032-*; \
touch $(DESTDIR)/usr/lib/hotplug/firmware/.dahdi-fw-vpmadt032-$(VPMADT032_VERSION)); \
fi
if [ -d $(DESTDIR)/lib/firmware ]; then \
+ tar xzvf dahdi-fw-vpmadt032-$(VPMADT032_VERSION).tar.gz; \
+ mv zaptel-fw-vpmadt032.bin dahdi-fw-vpmadt032.bin; \
install -m 644 dahdi-fw-vpmadt032.bin $(DESTDIR)/lib/firmware && \
(rm -rf $(DESTDIR)/lib/firmware/.dahdi-fw-vpmadt032-*; \
touch $(DESTDIR)/lib/firmware/.dahdi-fw-vpmadt032-$(VPMADT032_VERSION)); \