1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
29 THISAPP = pcengines-apu-firmware-$(VER)
30 DL_FROM = $(URL_IPFIRE)
31 DIR_APP = $(DIR_SRC)/$(THISAPP)
32 TARGET = $(DIR_INFO)/$(THISAPP)
33 PROG = pcengines-apu-firmware
35 SUP_ARCH = i586 x86_64
37 DEPS = firmware-update
39 ###############################################################################
41 ###############################################################################
51 apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
52 apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
53 apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
54 apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
55 apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
56 apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
58 apu1_v$(VER).rom_MD5 = e4d9ae35c2be9bf00c18426be5939eea
59 apu2_v$(VER).rom_MD5 = 03441c9c73b19e7f7dac609900ce5ea1
60 apu3_v$(VER).rom_MD5 = ad98d3f992ca7bfc8ceb5e3f64f8d7ac
61 apu4_v$(VER).rom_MD5 = 1257cc73fe96e131da9d21207f6793ce
62 apu5_v$(VER).rom_MD5 = 442c34e47402fbe9c2f9c597f9e88bea
63 apu6_v$(VER).rom_MD5 = 958de4c34fecedd38fc95e602f28c627
67 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
69 download :$(patsubst %,$(DIR_DL)/%,$(objects))
71 md5 : $(subst %,%_MD5,$(objects))
76 ###############################################################################
77 # Downloading, checking, md5sum
78 ###############################################################################
80 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
83 $(patsubst %,$(DIR_DL)/%,$(objects)) :
86 $(subst %,%_MD5,$(objects)) :
89 ###############################################################################
90 # Installation Details
91 ###############################################################################
93 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
96 # Install firmware to /lib/firmware
97 mkdir -pv /lib/firmware/pcengines/apu
98 cd $(DIR_DL) && install -v -m 644 $(objects) \
99 /lib/firmware/pcengines/apu