]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/pcengines-apu-firmware
Merge branch 'master' into next
[people/pmueller/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
f15707c7
RR
27SUMMARY = Firmware files for PC Engines apu system boards
28
f481a92f 29VER = 4.15.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
f481a92f 36PAK_VER = 10
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 = \
48 apu1_v$(VER).rom \
49 apu2_v$(VER).rom \
50 apu3_v$(VER).rom \
51 apu4_v$(VER).rom \
17a8437e
AF
52 apu5_v$(VER).rom \
53 apu6_v$(VER).rom
0e54ca26
MT
54
55apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
56apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
57apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
58apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
59apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
17a8437e
AF
60apu6_v$(VER).rom = $(DL_FROM)/apu6_v$(VER).rom
61
f481a92f
AB
62apu1_v$(VER).rom_MD5 = 6b53385232624d48ec7c8fc7f0390413
63apu2_v$(VER).rom_MD5 = 062b6fe09e22077b7155f3eb3bf8ec34
64apu3_v$(VER).rom_MD5 = caa7a5b8d4977de9e4135ab1bc1d15dd
65apu4_v$(VER).rom_MD5 = ffc0f94f2d9c6c25e1d53e0386fbd20b
66apu5_v$(VER).rom_MD5 = e63e1f3392a414942ca65cfa46868665
67apu6_v$(VER).rom_MD5 = 9264657ad3fca49101b28901cf65f4bf
0e54ca26
MT
68
69install : $(TARGET)
70
71check : $(patsubst %,$(DIR_CHK)/%,$(objects))
72
73download :$(patsubst %,$(DIR_DL)/%,$(objects))
74
75md5 : $(subst %,%_MD5,$(objects))
76
d01b47b7 77dist:
0e54ca26
MT
78 @$(PAK)
79
80###############################################################################
81# Downloading, checking, md5sum
82###############################################################################
83
84$(patsubst %,$(DIR_CHK)/%,$(objects)) :
85 @$(CHECK)
86
87$(patsubst %,$(DIR_DL)/%,$(objects)) :
88 @$(LOAD)
89
90$(subst %,%_MD5,$(objects)) :
91 @$(MD5)
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)