]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
mt7601u-firmware: added
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 19 Mar 2016 11:54:12 +0000 (12:54 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 19 Mar 2016 11:54:12 +0000 (12:54 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/common/mt7601u-firmware [new file with mode: 0644]
config/rootfiles/core/100/filelists/mt7601u-firmware [new symlink]
lfs/mt7601u-firmware [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/mt7601u-firmware b/config/rootfiles/common/mt7601u-firmware
new file mode 100644 (file)
index 0000000..ebae229
--- /dev/null
@@ -0,0 +1 @@
+lib/firmware/mt7601u.bin
diff --git a/config/rootfiles/core/100/filelists/mt7601u-firmware b/config/rootfiles/core/100/filelists/mt7601u-firmware
new file mode 120000 (symlink)
index 0000000..300ac04
--- /dev/null
@@ -0,0 +1 @@
+../../../common/mt7601u-firmware
\ No newline at end of file
diff --git a/lfs/mt7601u-firmware b/lfs/mt7601u-firmware
new file mode 100644 (file)
index 0000000..6d6724b
--- /dev/null
@@ -0,0 +1,72 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2017  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 20160319
+
+THISAPP    = mt7601u-firmware-$(VER)
+DL_FILE    = $(THISAPP).tar.xz
+DL_FROM    = $(URL_IPFIRE)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 3bfc6e63ceac64521f1de40ae93613d4
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @cd /lib/firmware && tar axf $(DIR_DL)/$(DL_FILE)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index ebce892ae7d9eb5b4e3c09726558d0b951495cbc..38e9229350432d0bd9ec4937d9988770ba0050bd 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -402,6 +402,7 @@ buildipfire() {
   ipfiremake linux-firmware
   ipfiremake ath10k-firmware
   ipfiremake dvb-firmwares
+  ipfiremake mt7601u-firmware
   ipfiremake zd1211-firmware
   ipfiremake rpi-firmware
   ipfiremake bc