]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include Config | |
26 | ||
27 | VER = 4.9.0.3 | |
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 = 1 | |
35 | ||
36 | DEPS = "firmware-update" | |
37 | ||
38 | ############################################################################### | |
39 | # Top-level Rules | |
40 | ############################################################################### | |
41 | ||
42 | objects = \ | |
43 | apu1_v$(VER).rom \ | |
44 | apu2_v$(VER).rom \ | |
45 | apu3_v$(VER).rom \ | |
46 | apu4_v$(VER).rom \ | |
47 | apu5_v$(VER).rom | |
48 | ||
49 | apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom | |
50 | apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom | |
51 | apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom | |
52 | apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom | |
53 | apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom | |
54 | ||
55 | apu1_v$(VER).rom_MD5 = eb446600520f9abc3704cd806cbf160f | |
56 | apu2_v$(VER).rom_MD5 = c61e10a6b2f76c8ada4e81f9e654decd | |
57 | apu3_v$(VER).rom_MD5 = d1390d76d0ee18912825fd95b08e3f26 | |
58 | apu4_v$(VER).rom_MD5 = c36cc13a1ba196b33eb85592bd44fad7 | |
59 | apu5_v$(VER).rom_MD5 = da69300aed63e89e827f1e3ee3adc06d | |
60 | ||
61 | install : $(TARGET) | |
62 | ||
63 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
64 | ||
65 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
66 | ||
67 | md5 : $(subst %,%_MD5,$(objects)) | |
68 | ||
69 | dist: | |
70 | @$(PAK) | |
71 | ||
72 | ############################################################################### | |
73 | # Downloading, checking, md5sum | |
74 | ############################################################################### | |
75 | ||
76 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
77 | @$(CHECK) | |
78 | ||
79 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
80 | @$(LOAD) | |
81 | ||
82 | $(subst %,%_MD5,$(objects)) : | |
83 | @$(MD5) | |
84 | ||
85 | ############################################################################### | |
86 | # Installation Details | |
87 | ############################################################################### | |
88 | ||
89 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
90 | @$(PREBUILD) | |
91 | ||
92 | # Install firmware to /lib/firmware | |
93 | mkdir -pv /lib/firmware/pcengines/apu | |
94 | cd $(DIR_DL) && install -v -m 644 $(objects) \ | |
95 | /lib/firmware/pcengines/apu | |
96 | ||
97 | @$(POSTBUILD) |