]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/pcengines-apu-firmware
Tor: Bump package version
[ipfire-2.x.git] / lfs / pcengines-apu-firmware
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 SUMMARY = Firmware files for PC Engines apu system boards
28
29 VER = 4.17.0.1
30
31 THISAPP = pcengines-apu-firmware-$(VER)
32 DL_FROM = $(URL_IPFIRE)
33 DIR_APP = $(DIR_SRC)/$(THISAPP)
34 TARGET = $(DIR_INFO)/$(THISAPP)
35 PROG = pcengines-apu-firmware
36 PAK_VER = 12
37 SUP_ARCH = x86_64
38
39 DEPS = firmware-update
40
41 SERVICES =
42
43 ###############################################################################
44 # Top-level Rules
45 ###############################################################################
46
47 objects = \
48 apu1_v$(VER).rom \
49 apu2_v$(VER).rom \
50 apu3_v$(VER).rom \
51 apu4_v$(VER).rom \
52 apu5_v$(VER).rom \
53 apu6_v$(VER).rom
54
55 apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
56 apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
57 apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
58 apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
59 apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
60 apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
61
62 apu1_v$(VER).rom_BLAKE2 = d4bad8ee0fd13d8c6cec47a5dd7d06bb4e768693e7f65979b1d5f930e541ef5bbaed398fc5d5336248a016b3916562b71308f82e373ed54dac3e159ddc982359
63 apu2_v$(VER).rom_BLAKE2 = d2f226edc5edf9eca6ad332b3e526d55278e583627b645a621e0f054504f2317b95d518d2c8026fd43473a1f39a7c0b750e1497a4616af077683f6100b4f44a6
64 apu3_v$(VER).rom_BLAKE2 = 498d9ef9d563d240f27468cc04b73816299eecaa62acacdcfff59076bff20a2e28526e7dc3dc88693c99303eba1bb15d345584851c4f4423c0239f7cd5304721
65 apu4_v$(VER).rom_BLAKE2 = ca454c3a4241529c998bc36cbeefd36025be0d18b2bb4bba6b703125d75d0db71a63f12a31399e25bc8825d0bd229d74d1a7254f326a36ad89202f2e57a09a69
66 apu5_v$(VER).rom_BLAKE2 = 2a24c540a8ff1003f40b70803b45e473bc349df66ecc41109fed7bf496ec741e264f8515f3a21682359cc5d3b65f15e291936f23c93c624064215deffa149e7c
67 apu6_v$(VER).rom_BLAKE2 = 87d1e8f5913205236f6d96b6e4611d464b269529bd9e7c95451b00ab9ea303147ea3c79706e4f6b514ae5985f487ae15c650ba38d54a4e208a4ef7ca5c701dda
68 apu7_v$(VER).rom_BLAKE2 = 078ebf4601e8eed8121683eb072f628e7cc422f67f43b9a79c89779d8703e016ab24207bb54c9f55eda4017bb78f6c71873faf6bc09a9d88815d06e7f4401dac
69
70 install : $(TARGET)
71
72 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
73
74 download :$(patsubst %,$(DIR_DL)/%,$(objects))
75
76 b2 : $(subst %,%_BLAKE2,$(objects))
77
78 dist:
79 @$(PAK)
80
81 ###############################################################################
82 # Downloading, checking, b2sum
83 ###############################################################################
84
85 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
86 @$(CHECK)
87
88 $(patsubst %,$(DIR_DL)/%,$(objects)) :
89 @$(LOAD)
90
91 $(subst %,%_BLAKE2,$(objects)) :
92 @$(B2SUM)
93
94 ###############################################################################
95 # Installation Details
96 ###############################################################################
97
98 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
99 @$(PREBUILD)
100
101 # Install firmware to /lib/firmware
102 mkdir -pv /lib/firmware/pcengines/apu
103 cd $(DIR_DL) && install -v -m 644 $(objects) \
104 /lib/firmware/pcengines/apu
105
106 @$(POSTBUILD)