mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
102 lines
3.7 KiB
Plaintext
102 lines
3.7 KiB
Plaintext
###############################################################################
|
|
# #
|
|
# IPFire.org - A linux based firewall #
|
|
# Copyright (C) 2007-2021 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 = 4.14.0.2
|
|
|
|
THISAPP = pcengines-apu-firmware-$(VER)
|
|
DL_FROM = $(URL_IPFIRE)
|
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
|
PROG = pcengines-apu-firmware
|
|
PAK_VER = 8
|
|
SUP_ARCH = i586 x86_64
|
|
|
|
DEPS = firmware-update
|
|
|
|
###############################################################################
|
|
# Top-level Rules
|
|
###############################################################################
|
|
|
|
objects = \
|
|
apu1_v$(VER).rom \
|
|
apu2_v$(VER).rom \
|
|
apu3_v$(VER).rom \
|
|
apu4_v$(VER).rom \
|
|
apu5_v$(VER).rom \
|
|
apu6_v$(VER).rom
|
|
|
|
apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
|
|
apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
|
|
apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
|
|
apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
|
|
apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
|
|
apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
|
|
|
|
apu1_v$(VER).rom_MD5 = e4d9ae35c2be9bf00c18426be5939eea
|
|
apu2_v$(VER).rom_MD5 = 03441c9c73b19e7f7dac609900ce5ea1
|
|
apu3_v$(VER).rom_MD5 = ad98d3f992ca7bfc8ceb5e3f64f8d7ac
|
|
apu4_v$(VER).rom_MD5 = 1257cc73fe96e131da9d21207f6793ce
|
|
apu5_v$(VER).rom_MD5 = 442c34e47402fbe9c2f9c597f9e88bea
|
|
apu6_v$(VER).rom_MD5 = 958de4c34fecedd38fc95e602f28c627
|
|
|
|
install : $(TARGET)
|
|
|
|
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
|
|
|
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
|
|
|
md5 : $(subst %,%_MD5,$(objects))
|
|
|
|
dist:
|
|
@$(PAK)
|
|
|
|
###############################################################################
|
|
# 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)
|
|
|
|
# Install firmware to /lib/firmware
|
|
mkdir -pv /lib/firmware/pcengines/apu
|
|
cd $(DIR_DL) && install -v -m 644 $(objects) \
|
|
/lib/firmware/pcengines/apu
|
|
|
|
@$(POSTBUILD)
|