]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/pcengines-apu-firmware
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / pcengines-apu-firmware
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2020 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 VER = 4.12.0.6
28
29 THISAPP = pcengines-apu-firmware-$(VER)
30 DL_FROM = $(URL_IPFIRE)
31 DIR_APP = $(DIR_SRC)/$(THISAPP)
32 TARGET = $(DIR_INFO)/$(THISAPP)
33 PROG = pcengines-apu-firmware
34 PAK_VER = 7
35 SUP_ARCH = i586 x86_64
36
37 DEPS = firmware-update
38
39 ###############################################################################
40 # Top-level Rules
41 ###############################################################################
42
43 objects = \
44 apu1_v$(VER).rom \
45 apu2_v$(VER).rom \
46 apu3_v$(VER).rom \
47 apu4_v$(VER).rom \
48 apu5_v$(VER).rom \
49 apu6_v$(VER).rom
50
51 apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
52 apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
53 apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
54 apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
55 apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
56 apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
57
58 apu1_v$(VER).rom_MD5 = d2e08bc117683fec306d2f980665a1eb
59 apu2_v$(VER).rom_MD5 = d9512a52159d546a34e8d630bfdb383b
60 apu3_v$(VER).rom_MD5 = 8cf5bd87f47cfaf7fdcda4bb0fa295fb
61 apu4_v$(VER).rom_MD5 = 405bd25c59efda4cf3e94c6e0b153890
62 apu5_v$(VER).rom_MD5 = a6ce900704cfecd254be6f4bbd7f1e3b
63 apu6_v$(VER).rom_MD5 = 30a1fb088b60b96bb8e17f2eb048b228
64
65 install : $(TARGET)
66
67 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
68
69 download :$(patsubst %,$(DIR_DL)/%,$(objects))
70
71 md5 : $(subst %,%_MD5,$(objects))
72
73 dist:
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)