]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/pcengines-apu-firmware
Drop support for i586
[ipfire-2.x.git] / lfs / pcengines-apu-firmware
CommitLineData
0e54ca26
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
19473c97 4# Copyright (C) 2007-2021 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
65710b52 27VER = 4.14.0.4
0e54ca26
MT
28
29THISAPP = pcengines-apu-firmware-$(VER)
30DL_FROM = $(URL_IPFIRE)
31DIR_APP = $(DIR_SRC)/$(THISAPP)
32TARGET = $(DIR_INFO)/$(THISAPP)
33PROG = pcengines-apu-firmware
65710b52 34PAK_VER = 9
6cf219c4 35SUP_ARCH = x86_64
0e54ca26 36
2dc2a278 37DEPS = firmware-update
0e54ca26
MT
38
39###############################################################################
40# Top-level Rules
41###############################################################################
42
43objects = \
44 apu1_v$(VER).rom \
45 apu2_v$(VER).rom \
46 apu3_v$(VER).rom \
47 apu4_v$(VER).rom \
17a8437e
AF
48 apu5_v$(VER).rom \
49 apu6_v$(VER).rom
0e54ca26
MT
50
51apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
52apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
53apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
54apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
55apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
17a8437e
AF
56apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
57
65710b52
AB
58apu1_v$(VER).rom_MD5 = e60ce8d903cb1e301aae1160aa8413cd
59apu2_v$(VER).rom_MD5 = 00da67aecd00e7479f0194ccc4ee5739
60apu3_v$(VER).rom_MD5 = 4f935c61fc4274c0b427d16d6aa0049a
61apu4_v$(VER).rom_MD5 = 3aed8f5e1e543a3912c808fe68067dde
62apu5_v$(VER).rom_MD5 = c39dbf45aa630c273fcace35fbc6324e
63apu6_v$(VER).rom_MD5 = b81f9da0f39b355344b602868b2ddcff
0e54ca26
MT
64
65install : $(TARGET)
66
67check : $(patsubst %,$(DIR_CHK)/%,$(objects))
68
69download :$(patsubst %,$(DIR_DL)/%,$(objects))
70
71md5 : $(subst %,%_MD5,$(objects))
72
73dist:
74 @$(PAK)
75
76###############################################################################
77# Downloading, checking, md5sum
78###############################################################################
79
80$(patsubst %,$(DIR_CHK)/%,$(objects)) :
81 @$(CHECK)
82
83$(patsubst %,$(DIR_DL)/%,$(objects)) :
84 @$(LOAD)
85
86$(subst %,%_MD5,$(objects)) :
87 @$(MD5)
88
89###############################################################################
90# Installation Details
91###############################################################################
92
93$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
94 @$(PREBUILD)
95
96 # Install firmware to /lib/firmware
97 mkdir -pv /lib/firmware/pcengines/apu
98 cd $(DIR_DL) && install -v -m 644 $(objects) \
99 /lib/firmware/pcengines/apu
100
101 @$(POSTBUILD)