aboutsummaryrefslogtreecommitdiffstats
path: root/community/uboot-tools/APKBUILD
blob: d6f82dc1c73947db16e561b5e33906479aac6dca (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fathi Boudra <fathi.boudra@linaro.org>
pkgname=uboot-tools
pkgver=2019.04
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 sdl-dev"
options="!check" # No test suite
source="http://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2"
builddir="$srcdir/u-boot-$pkgver"

build() {
	cd "$builddir"
	make defconfig
	make tools-all
}

package() {
	cd "$builddir"
	for tool in bmp_logo dumpimage easylogo/easylogo 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/etc/fw_env.config
	cd "$pkgdir"/usr/bin
	ln -sf fw_printenv fw_setenv
}

sha512sums="357fe94b5b043885472ea1b7dcbbac601d0c1f7c64f71026b9e1279b53160847c6478d6ec98a2f678e562db21e39037d6e6fbc1e6b19beaac02ca14e93c5de0e  u-boot-2019.04.tar.bz2"