[svn-commits] file: branch file/zaptel-firmware r1817 - in
/team/file/zaptel-firmware: ./ f...
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Mon Jan 15 17:08:11 MST 2007
Author: file
Date: Mon Jan 15 18:08:10 2007
New Revision: 1817
URL: http://svn.digium.com/view/zaptel?view=rev&rev=1817
Log:
Add firmware Makefile I'm toying with and have the zaptel main Makefile utilize it.
Added:
team/file/zaptel-firmware/firmware/Makefile (with props)
Modified:
team/file/zaptel-firmware/Makefile
Modified: team/file/zaptel-firmware/Makefile
URL: http://svn.digium.com/view/zaptel/team/file/zaptel-firmware/Makefile?view=diff&rev=1817&r1=1816&r2=1817
==============================================================================
--- team/file/zaptel-firmware/Makefile (original)
+++ team/file/zaptel-firmware/Makefile Mon Jan 15 18:08:10 2007
@@ -7,7 +7,7 @@
.EXPORT_ALL_VARIABLES:
-.PHONY: menuselect distclean dist-clean clean version.h all _all install b410p devices programs modules linux24 linux26 xpp tests devel data stackcheck install-udev config update install-programs install-modules install-linux24 install-linux26 firmware install-include install-libs
+.PHONY: menuselect distclean dist-clean clean version.h all _all install b410p devices programs modules linux24 linux26 xpp tests devel data stackcheck install-udev config update install-programs install-modules install-linux24 install-linux26 firmware install-include install-libs firmware
PWD=$(shell pwd)
@@ -434,17 +434,7 @@
install-udev: devices
firmware:
-ifeq ($(HOTPLUG_FIRMWARE),yes)
- if [ -d $(INSTALL_PREFIX)/usr/lib/hotplug/firmware ]; then \
- $(INSTALL) -m 644 wct4xxp/*.ima $(INSTALL_PREFIX)/usr/lib/hotplug/firmware; \
- fi
- if [ -d $(INSTALL_PREFIX)/lib/firmware ]; then \
- $(INSTALL) -m 644 wct4xxp/*.ima $(INSTALL_PREFIX)/lib/firmware; \
- fi
- @echo "Installed firmware"
-else
- @echo "Not installing firmware because we are not using hotplug firmware"
-endif
+ @$(MAKE) -C firmware install
config:
if [ -d $(INSTALL_PREFIX)/etc/rc.d/init.d ]; then \
@@ -523,6 +513,7 @@
dist-clean: clean
@$(MAKE) -C menuselect dist-clean
+ @$(MAKE) -C firmware dist-clean
rm -f makeopts menuselect.makeopts menuselect-tree
rm -f config.log config.status
Added: team/file/zaptel-firmware/firmware/Makefile
URL: http://svn.digium.com/view/zaptel/team/file/zaptel-firmware/firmware/Makefile?view=auto&rev=1817
==============================================================================
--- team/file/zaptel-firmware/firmware/Makefile (added)
+++ team/file/zaptel-firmware/firmware/Makefile Mon Jan 15 18:08:10 2007
@@ -1,0 +1,55 @@
+#
+# Asterisk -- A telephony toolkit for Linux.
+#
+# Makefile for firmware downloading/installation
+#
+# Copyright (C) 2007, Digium, Inc.
+#
+# Joshua Colp <jcolp at digium.com>
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License
+#
+
+.PHONY: dist-clean all uninstall have_download install
+
+-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/makeopts
+
+PWD:=$(shell pwd)
+
+OCTASIC_VERSION:=6114
+TC400B_VERSION:=1
+
+FIRMWARE_URL:=http://ftp.digium.com/pub/telephony/firmware/relases
+
+FIRMWARE:=$(MENUSELECT_FIRMWARE:FIRMWARE-OCTASIC=zaptel-fw-octasic-$(OCTASIC_VERSION).tar.gz)
+FIRMWARE:=$(FIRMWARE:FIRMWARE-TC400B=zaptel-fw-tc400b-$(TC400B_VERSION).tar.gz)
+
+# If "fetch" is used, --continue is not a valid option.
+ifeq ($(WGET),wget)
+WGET_ARGS:=--continue
+endif
+
+all: $(FIRMWARE)
+
+have_download:
+ @if test "$(DOWNLOAD)" = ":" ; then \
+ echo "**************************************************"; \
+ echo "*** ***"; \
+ echo "*** You must have either wget or fetch to be ***"; \
+ echo "*** able to automatically download and install ***"; \
+ echo "*** the requested firmware packages. ***"; \
+ echo "*** ***"; \
+ echo "**************************************************"; \
+ exit 1; \
+ fi
+
+zaptel-fw-%.tar.gz: have_download
+ @if test ! -f $@; then $(DOWNLOAD) $(WGET_ARGS) $(FIRMWARE_URL)/$@; fi;
+
+dist-clean:
+ rm -f *.tar.gz
+
+install: $(FIRMWARE)
+
+uninstall:
Propchange: team/file/zaptel-firmware/firmware/Makefile
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: team/file/zaptel-firmware/firmware/Makefile
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: team/file/zaptel-firmware/firmware/Makefile
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the svn-commits
mailing list