]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/pcengines-apu-firmware
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / pcengines-apu-firmware
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2023 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.19.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 = 15
37 SUP_ARCH = x86_64
38
39 DEPS = firmware-update
40
41 SERVICES =
42
43 ###############################################################################
44 # Top-level Rules
45 ###############################################################################
46
47 objects = \
48 apu2_v$(VER).rom \
49 apu3_v$(VER).rom \
50 apu4_v$(VER).rom \
51 apu5_v$(VER).rom \
52 apu6_v$(VER).rom \
53 apu7_v$(VER).rom
54
55 apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
56 apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
57 apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
58 apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
59 apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
60 apu7_v$(VER).rom = $(DL_FROM)/apu7_v$(VER).rom
61
62 apu2_v$(VER).rom_BLAKE2 = e079af4e8f6898a83a0ad2ba2c5af5e89416b58562fd47fb22ba5d9332f88c822efd354e21d486b0002b41769f26fe02cc2b78a3d6b52fc8e95b48ea68c2fb4c
63 apu3_v$(VER).rom_BLAKE2 = edfff21da4d6391ac89d911ee205445ac714e7813e92b5721e05b2d81701e5891eaf073ebcc282648b09645d88b897a8d2201029888a9cdf09ed7b9503f840da
64 apu4_v$(VER).rom_BLAKE2 = 5b92cbfe6ac0c75e4a01a18b9c8c0e8abd924b335063edc60944c65bec4edb439d3e1320129cd363e55497590cae7d16a205fdbb33621ff5e9be99e63723eaa1
65 apu5_v$(VER).rom_BLAKE2 = fbeda636542a78670faaed859bb774b7f380c7e9a5b2efb12865118df96e9a010a611a7e5fee8a88cb05063bc7cec9eaa780974b27b5c3738fbaea8d64de6493
66 apu6_v$(VER).rom_BLAKE2 = af595261161cb214059906e613dfac72d083a370706c4ae37a9d234348f74ece7e2a9c3ea305dc6a66e73c56e86e42754adf516e828d3cf5923466584c2317e9
67 apu7_v$(VER).rom_BLAKE2 = 1a22c3d7f13927bb765ec0538e6d79fd9e5bed31fda5b3530901710444232fd007a705cad86318d52b1204448a7b9b020c00fd87eaf41268bbed12a0ebed2f47
68
69 install : $(TARGET)
70
71 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
72
73 download :$(patsubst %,$(DIR_DL)/%,$(objects))
74
75 b2 : $(subst %,%_BLAKE2,$(objects))
76
77 dist:
78 @$(PAK)
79
80 ###############################################################################
81 # Downloading, checking, b2sum
82 ###############################################################################
83
84 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
85 @$(CHECK)
86
87 $(patsubst %,$(DIR_DL)/%,$(objects)) :
88 @$(LOAD)
89
90 $(subst %,%_BLAKE2,$(objects)) :
91 @$(B2SUM)
92
93 ###############################################################################
94 # Installation Details
95 ###############################################################################
96
97 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
98 @$(PREBUILD)
99
100 # Install firmware to /lib/firmware
101 mkdir -pv /lib/firmware/pcengines/apu
102 cd $(DIR_DL) && install -v -m 644 $(objects) \
103 /lib/firmware/pcengines/apu
104
105 @$(POSTBUILD)