[svn-commits] murf: linux/trunk r4442 - /linux/trunk/drivers/dahdi/firmware/Makefile
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sat Jun 21 21:28:59 CDT 2008
Author: murf
Date: Sat Jun 21 21:28:56 2008
New Revision: 4442
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4442
Log:
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.
Modified:
linux/trunk/drivers/dahdi/firmware/Makefile
Modified: linux/trunk/drivers/dahdi/firmware/Makefile
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/firmware/Makefile?view=diff&rev=4442&r1=4441&r2=4442
==============================================================================
--- linux/trunk/drivers/dahdi/firmware/Makefile (original)
+++ linux/trunk/drivers/dahdi/firmware/Makefile Sat Jun 21 21:28:56 2008
@@ -81,11 +81,15 @@
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 @@
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 @@
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 @@
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)); \
More information about the svn-commits
mailing list