]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/pcengines-apu-firmware
pcengines-apu-firmware: Update to version 4.19.0.1
[people/pmueller/ipfire-2.x.git] / lfs / pcengines-apu-firmware
CommitLineData
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
25include Config
26
f15707c7
RR
27SUMMARY = Firmware files for PC Engines apu system boards
28
3ad00458 29VER = 4.19.0.1
0e54ca26
MT
30
31THISAPP = pcengines-apu-firmware-$(VER)
32DL_FROM = $(URL_IPFIRE)
33DIR_APP = $(DIR_SRC)/$(THISAPP)
34TARGET = $(DIR_INFO)/$(THISAPP)
35PROG = pcengines-apu-firmware
3ad00458 36PAK_VER = 15
6cf219c4 37SUP_ARCH = x86_64
0e54ca26 38
2dc2a278 39DEPS = firmware-update
0e54ca26 40
f15707c7
RR
41SERVICES =
42
0e54ca26
MT
43###############################################################################
44# Top-level Rules
45###############################################################################
46
47objects = \
0e54ca26
MT
48 apu2_v$(VER).rom \
49 apu3_v$(VER).rom \
50 apu4_v$(VER).rom \
17a8437e 51 apu5_v$(VER).rom \
ef3feaf5
JM
52 apu6_v$(VER).rom \
53 apu7_v$(VER).rom
0e54ca26 54
0e54ca26
MT
55apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
56apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
57apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
58apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
17a8437e 59apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
ef3feaf5
JM
60apu7_v$(VER).rom = $(DL_FROM)/apu7_v$(VER).rom
61
3ad00458
JM
62apu2_v$(VER).rom_BLAKE2 = e079af4e8f6898a83a0ad2ba2c5af5e89416b58562fd47fb22ba5d9332f88c822efd354e21d486b0002b41769f26fe02cc2b78a3d6b52fc8e95b48ea68c2fb4c
63apu3_v$(VER).rom_BLAKE2 = edfff21da4d6391ac89d911ee205445ac714e7813e92b5721e05b2d81701e5891eaf073ebcc282648b09645d88b897a8d2201029888a9cdf09ed7b9503f840da
64apu4_v$(VER).rom_BLAKE2 = 5b92cbfe6ac0c75e4a01a18b9c8c0e8abd924b335063edc60944c65bec4edb439d3e1320129cd363e55497590cae7d16a205fdbb33621ff5e9be99e63723eaa1
65apu5_v$(VER).rom_BLAKE2 = fbeda636542a78670faaed859bb774b7f380c7e9a5b2efb12865118df96e9a010a611a7e5fee8a88cb05063bc7cec9eaa780974b27b5c3738fbaea8d64de6493
66apu6_v$(VER).rom_BLAKE2 = af595261161cb214059906e613dfac72d083a370706c4ae37a9d234348f74ece7e2a9c3ea305dc6a66e73c56e86e42754adf516e828d3cf5923466584c2317e9
67apu7_v$(VER).rom_BLAKE2 = 1a22c3d7f13927bb765ec0538e6d79fd9e5bed31fda5b3530901710444232fd007a705cad86318d52b1204448a7b9b020c00fd87eaf41268bbed12a0ebed2f47
0e54ca26
MT
68
69install : $(TARGET)
70
71check : $(patsubst %,$(DIR_CHK)/%,$(objects))
72
73download :$(patsubst %,$(DIR_DL)/%,$(objects))
74
9a7e4d85 75b2 : $(subst %,%_BLAKE2,$(objects))
0e54ca26 76
d01b47b7 77dist:
0e54ca26
MT
78 @$(PAK)
79
80###############################################################################
9a7e4d85 81# Downloading, checking, b2sum
0e54ca26
MT
82###############################################################################
83
84$(patsubst %,$(DIR_CHK)/%,$(objects)) :
85 @$(CHECK)
86
87$(patsubst %,$(DIR_DL)/%,$(objects)) :
88 @$(LOAD)
89
9a7e4d85
PM
90$(subst %,%_BLAKE2,$(objects)) :
91 @$(B2SUM)
0e54ca26
MT
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)