]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/pcengines-apu-firmware
Merge remote-tracking branch 'origin/next'
[ipfire-2.x.git] / lfs / pcengines-apu-firmware
CommitLineData
0e54ca26
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007-2019 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
25include Config
26
eb5cd9fa 27VER = 4.9.0.7
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
eb5cd9fa 34PAK_VER = 2
1fd34bd2 35SUP_ARCH = i586 x86_64
0e54ca26
MT
36
37DEPS = "firmware-update"
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 \
48 apu5_v$(VER).rom
49
50apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
51apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
52apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
53apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
54apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
55
eb5cd9fa
AF
56apu1_v$(VER).rom_MD5 = c4319969ebe031d8ab04e4d758581ca0
57apu2_v$(VER).rom_MD5 = eea6483fcd473fbb38f0547aa1aaeb31
58apu3_v$(VER).rom_MD5 = 790bc3934c7429c322d04c49e0fadb95
59apu4_v$(VER).rom_MD5 = d1c9fea737d46c82bfec2a8f3bee6c46
60apu5_v$(VER).rom_MD5 = e60502e06f5e814c2845cde447aa8f6f
0e54ca26
MT
61
62install : $(TARGET)
63
64check : $(patsubst %,$(DIR_CHK)/%,$(objects))
65
66download :$(patsubst %,$(DIR_DL)/%,$(objects))
67
68md5 : $(subst %,%_MD5,$(objects))
69
70dist:
71 @$(PAK)
72
73###############################################################################
74# Downloading, checking, md5sum
75###############################################################################
76
77$(patsubst %,$(DIR_CHK)/%,$(objects)) :
78 @$(CHECK)
79
80$(patsubst %,$(DIR_DL)/%,$(objects)) :
81 @$(LOAD)
82
83$(subst %,%_MD5,$(objects)) :
84 @$(MD5)
85
86###############################################################################
87# Installation Details
88###############################################################################
89
90$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
91 @$(PREBUILD)
92
93 # Install firmware to /lib/firmware
94 mkdir -pv /lib/firmware/pcengines/apu
95 cd $(DIR_DL) && install -v -m 644 $(objects) \
96 /lib/firmware/pcengines/apu
97
98 @$(POSTBUILD)