aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uboot-tools/APKBUILD
blob: 0eda6efa239b7358dcdf67731d75e49d43981e2c (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=uboot-tools
pkgver=2018.09
pkgrel=0
pkgdesc="U-Boot bootloader utility tools"
url="https://www.denx.de/wiki/U-Boot/WebHome"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev bison flex openssl-dev linux-headers sdl-dev"
install=""
subpackages=""
source="ftp://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="48cb60a53450e2820eda706917b61dae053677fecfe177e0d07968313d25c7e9d5ab2d7cc5625b54e4c823f5c8852f88387b94f404e307e737aaa5a2c887ad4a  u-boot-2018.09.tar.bz2"