]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/u-boot-friendlyarm
Switch checksums from MD5 to BLAKE2
[ipfire-2.x.git] / lfs / u-boot-friendlyarm
CommitLineData
6836e528
AF
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
b04724fd 4# Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
6836e528
AF
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
b04724fd
AF
27VER = 5e8607b-nanopi-r1-binary
28#
29# This older and heavy patched u-boot cannot build without python2 so this
30# copy the binary from core159
31#
6836e528 32THISAPP = u-boot-friendlyarm-$(VER)
b04724fd 33DL_FILE = $(THISAPP).tar.xz
6836e528 34DL_FROM = $(URL_IPFIRE)
b04724fd 35DIR_APP = $(DIR_SRC)/u-boot-$(VER)
6836e528 36TARGET = $(DIR_INFO)/$(THISAPP)
853d70e9 37SUP_ARCH = armv6l
61681636 38
6836e528
AF
39###############################################################################
40# Top-level Rules
41###############################################################################
42
43objects = $(DL_FILE)
44
45$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
46
9a7e4d85 47$(DL_FILE)_BLAKE2 = ed5377d064f6ecdf9972accfd35adf750e32a68ac885ed986bf81f20382224028ee7c54aa82f226e41b6025677a63f1080e7603eeb590f9c8551fa1d1b397245
6836e528
AF
48
49install : $(TARGET)
50
51check : $(patsubst %,$(DIR_CHK)/%,$(objects))
52
53download :$(patsubst %,$(DIR_DL)/%,$(objects))
54
9a7e4d85 55b2 : $(subst %,%_BLAKE2,$(objects))
6836e528
AF
56
57###############################################################################
9a7e4d85 58# Downloading, checking, b2sum
6836e528
AF
59###############################################################################
60
61$(patsubst %,$(DIR_CHK)/%,$(objects)) :
62 @$(CHECK)
63
64$(patsubst %,$(DIR_DL)/%,$(objects)) :
65 @$(LOAD)
66
9a7e4d85
PM
67$(subst %,%_BLAKE2,$(objects)) :
68 @$(B2SUM)
6836e528 69
66c36198 70dist:
6836e528
AF
71 @$(PAK)
72
73###############################################################################
74# Installation Details
75###############################################################################
76
77$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
78 @$(PREBUILD)
b04724fd 79 @cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) -C /usr/share/u-boot/
6836e528 80 @$(POSTBUILD)