]>
Commit | Line | Data |
---|---|---|
0e54ca26 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
64567c94 | 4 | # Copyright (C) 2007-2022 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 | ||
ef3feaf5 | 29 | VER = 4.17.0.2 |
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 | |
ef3feaf5 | 36 | PAK_VER = 13 |
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 = \ | |
48 | apu1_v$(VER).rom \ | |
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 MT |
55 | |
56 | apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom | |
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 | ||
64 | apu1_v$(VER).rom_BLAKE2 = 90156d57e5d3c5907d99719668dc6b2b03b201d02d716722ea2c6bd201409dbeed83766a53a75fba89583f9a58e370c5951293c91405e9815466b91449af829d | |
65 | apu2_v$(VER).rom_BLAKE2 = f074f78a3ce7cb5df813a6f3f198d06585f1f9b932a31e07d6ce94a5a48e6e4211166beba5f04b1b176b914d3d7448606f9c9fb1b60130b5609ce97c298a09ba | |
66 | apu3_v$(VER).rom_BLAKE2 = 6f7f200f882bf188100f13c8a0d078e2bf94e40773cfba2d2d908d31c2a6d05567fc1cb81b2bedf4af6cdd7f9a4c8f6b67f168844298fcce99060aa13806790d | |
67 | apu4_v$(VER).rom_BLAKE2 = 75f927deddbab1a4413392ac40e434a59ce3e16034bf439dc7ca93be0c84f3279c8fadd8f199134b586cbf1c102c3b28a78d4ca50f556122473055f77e031416 | |
68 | apu5_v$(VER).rom_BLAKE2 = 030deaef4b784b527c699bf394bfbec3108e8ed41a8ce89d93e9a7cea208805a1a37cae686cb724fc6e4b26da48885c3f7fd745cabe8150066f4a52167ee7066 | |
69 | apu6_v$(VER).rom_BLAKE2 = 19dedf8c79c3835b53252f5f4019bafbc47bd753247fd9d5bf974944a4587e8c2ec136805bb11576b11fe6ce3a5b83ccf99b2bd92341a20bf87730491548368e | |
70 | apu7_v$(VER).rom_BLAKE2 = e99c0993baeffb0026e33d04be20a1bacdd2aa44c6cccf89bbd92313c361f62014080c47b8255a4381c12dd5519bc294595b917054f2289665852db174c2e22e | |
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) |