From d731b1f9914738ba8c76f7724b7915c941d3e336 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 19 Mar 2016 12:54:12 +0100 Subject: [PATCH] mt7601u-firmware: added Signed-off-by: Arne Fitzenreiter --- config/rootfiles/common/mt7601u-firmware | 1 + .../core/100/filelists/mt7601u-firmware | 1 + lfs/mt7601u-firmware | 72 +++++++++++++++++++ make.sh | 1 + 4 files changed, 75 insertions(+) create mode 100644 config/rootfiles/common/mt7601u-firmware create mode 120000 config/rootfiles/core/100/filelists/mt7601u-firmware create mode 100644 lfs/mt7601u-firmware diff --git a/config/rootfiles/common/mt7601u-firmware b/config/rootfiles/common/mt7601u-firmware new file mode 100644 index 0000000000..ebae2293ec --- /dev/null +++ b/config/rootfiles/common/mt7601u-firmware @@ -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 index 0000000000..300ac0427a --- /dev/null +++ b/config/rootfiles/core/100/filelists/mt7601u-firmware @@ -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 index 0000000000..6d6724bab4 --- /dev/null +++ b/lfs/mt7601u-firmware @@ -0,0 +1,72 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2017 IPFire Team # +# # +# 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 . # +# # +############################################################################### + +############################################################################### +# 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 ebce892ae7..38e9229350 100755 --- 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 -- 2.39.2