]>
Commit | Line | Data |
---|---|---|
0e54ca26 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
c80bc994 | 4 | # Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> # |
0e54ca26 MT |
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 | ||
f15707c7 RR |
27 | SUMMARY = Firmware files for PC Engines apu system boards |
28 | ||
3ad00458 | 29 | VER = 4.19.0.1 |
0e54ca26 MT |
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 | |
e5064897 | 36 | PAK_VER = 16 |
6cf219c4 | 37 | SUP_ARCH = x86_64 |
0e54ca26 | 38 | |
2dc2a278 | 39 | DEPS = firmware-update |
0e54ca26 | 40 | |
f15707c7 RR |
41 | SERVICES = |
42 | ||
0e54ca26 MT |
43 | ############################################################################### |
44 | # Top-level Rules | |
45 | ############################################################################### | |
46 | ||
47 | objects = \ | |
e5064897 | 48 | apu1_v4.17.0.3.rom \ |
0e54ca26 MT |
49 | apu2_v$(VER).rom \ |
50 | apu3_v$(VER).rom \ | |
51 | apu4_v$(VER).rom \ | |
17a8437e | 52 | apu5_v$(VER).rom \ |
ef3feaf5 JM |
53 | apu6_v$(VER).rom \ |
54 | apu7_v$(VER).rom | |
0e54ca26 | 55 | |
e5064897 | 56 | apu1_v4.17.0.3.rom = $(DL_FROM)/apu1_v4.17.0.3.rom |
0e54ca26 MT |
57 | apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom |
58 | apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom | |
59 | apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom | |
60 | apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom | |
17a8437e | 61 | apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom |
ef3feaf5 JM |
62 | apu7_v$(VER).rom = $(DL_FROM)/apu7_v$(VER).rom |
63 | ||
e5064897 | 64 | apu1_v4.17.0.3.rom_BLAKE2 = e64c56f6105a206b6af2da4d54bd36d9caa53154b17d5fc32966ee3ed74b0b25749fd10c6936b5b9e526b779c2ef9f1d566915297244e1570c5000b555561aea |
3ad00458 JM |
65 | apu2_v$(VER).rom_BLAKE2 = e079af4e8f6898a83a0ad2ba2c5af5e89416b58562fd47fb22ba5d9332f88c822efd354e21d486b0002b41769f26fe02cc2b78a3d6b52fc8e95b48ea68c2fb4c |
66 | apu3_v$(VER).rom_BLAKE2 = edfff21da4d6391ac89d911ee205445ac714e7813e92b5721e05b2d81701e5891eaf073ebcc282648b09645d88b897a8d2201029888a9cdf09ed7b9503f840da | |
67 | apu4_v$(VER).rom_BLAKE2 = 5b92cbfe6ac0c75e4a01a18b9c8c0e8abd924b335063edc60944c65bec4edb439d3e1320129cd363e55497590cae7d16a205fdbb33621ff5e9be99e63723eaa1 | |
68 | apu5_v$(VER).rom_BLAKE2 = fbeda636542a78670faaed859bb774b7f380c7e9a5b2efb12865118df96e9a010a611a7e5fee8a88cb05063bc7cec9eaa780974b27b5c3738fbaea8d64de6493 | |
69 | apu6_v$(VER).rom_BLAKE2 = af595261161cb214059906e613dfac72d083a370706c4ae37a9d234348f74ece7e2a9c3ea305dc6a66e73c56e86e42754adf516e828d3cf5923466584c2317e9 | |
70 | apu7_v$(VER).rom_BLAKE2 = 1a22c3d7f13927bb765ec0538e6d79fd9e5bed31fda5b3530901710444232fd007a705cad86318d52b1204448a7b9b020c00fd87eaf41268bbed12a0ebed2f47 | |
0e54ca26 MT |
71 | |
72 | install : $(TARGET) | |
73 | ||
74 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
75 | ||
76 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
77 | ||
9a7e4d85 | 78 | b2 : $(subst %,%_BLAKE2,$(objects)) |
0e54ca26 | 79 | |
d01b47b7 | 80 | dist: |
0e54ca26 MT |
81 | @$(PAK) |
82 | ||
83 | ############################################################################### | |
9a7e4d85 | 84 | # Downloading, checking, b2sum |
0e54ca26 MT |
85 | ############################################################################### |
86 | ||
87 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
88 | @$(CHECK) | |
89 | ||
90 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
91 | @$(LOAD) | |
92 | ||
9a7e4d85 PM |
93 | $(subst %,%_BLAKE2,$(objects)) : |
94 | @$(B2SUM) | |
0e54ca26 MT |
95 | |
96 | ############################################################################### | |
97 | # Installation Details | |
98 | ############################################################################### | |
99 | ||
100 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
101 | @$(PREBUILD) | |
102 | ||
103 | # Install firmware to /lib/firmware | |
104 | mkdir -pv /lib/firmware/pcengines/apu | |
105 | cd $(DIR_DL) && install -v -m 644 $(objects) \ | |
106 | /lib/firmware/pcengines/apu | |
107 | ||
108 | @$(POSTBUILD) |