blob: 3c87c1ac1669f7a0f422cb2aaadbb1c0de76973d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fathi Boudra <fathi.boudra@linaro.org>
pkgname=uboot-tools
pkgver=2020.01
pkgrel=0
pkgdesc="U-Boot bootloader utility tools"
url="https://www.denx.de/wiki/U-Boot/WebHome"
arch="all !s390x !ppc64le"
license="GPL"
makedepends="$depends_dev bison flex openssl-dev linux-headers"
subpackages="$pkgname-examples"
options="!check" # No test suite
source="http://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2
fix-ulong-typedef.patch
defang-efi-bootcmd.patch
"
builddir="$srcdir/u-boot-$pkgver"
build() {
cd "$builddir"
make defconfig
make tools-all
}
examples() {
mkdir -p "${subpkgdir}/usr/share/doc/${pkgname}"
mv "${pkgdir}/usr/share/doc/${pkgname}/examples/" \
"${subpkgdir}/usr/share/doc/${pkgname}"
}
package() {
cd "$builddir"
for tool in bmp_logo dumpimage env/fw_printenv \
fit_check_sign fit_info gdb/gdbcont gdb/gdbsend gen_eth_addr img2srec \
mkenvimage mkimage ncb proftool ubsha1 xway-swap-bytes env/fw_printenv; do
install -D tools/$tool \
$pkgdir/usr/bin/$(basename $tool)
done
install -Dm644 tools/env/fw_env.config \
"${pkgdir}/usr/share/doc/${pkgname}/examples/fw_env.config"
cd "$pkgdir"/usr/bin
ln -sf fw_printenv fw_setenv
}
sha512sums="073d4e0234095c1bda1ffa7a648972aa4530d106ee1a73035e0501b1aba2951653582c8b7bcf338d4e95012fa67e75f97b7e1fbac5cc764d609b671ef29617f7 u-boot-2020.01.tar.bz2
813dd152afa8863d3c7456449c9b0b358232edae7c8575ebe4af71bfe74019d4c27f30dc6fcf307018e36f5afdaf7de32253c0a773955d5be74c625ddd5668c7 fix-ulong-typedef.patch
ae4fa0a1e11fe862fc30d78d52616ede65b87893e656d7bca0c3e269d744ed477a23185f1d61e91e9beb765c5bafcbcba65699ca9835a516637098ef332644df defang-efi-bootcmd.patch"
|