aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uboot-tools/APKBUILD
blob: bf5a3dc0e43552c820a431e9f89771deb34964de (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=uboot-tools
pkgver=2016.05
pkgrel=4
pkgdesc="U-Boot bootloader utility tools"
url="http://www.denx.de/wiki/U-Boot/WebHome"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev libressl-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 || return 1
	make tools-all || return 1
}

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) || return 1
	done
	install -Dm644 tools/env/fw_env.config \
			$pkgdir/etc/fw_env.config || return 1
	cd "$pkgdir"/usr/bin
	ln -sf fw_printenv fw_setenv || return 1
}

md5sums="3a8613d753dfa707c937991a35404510  u-boot-2016.05.tar.bz2"
sha256sums="87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171  u-boot-2016.05.tar.bz2"
sha512sums="61739390134f395c8b15a92819c534464c97f73b4ef8dafd35c0a58e0d163f149c9f8daa45cc99bde73a4606900486422279fdeb8043e20e616d597cc7b017a8  u-boot-2016.05.tar.bz2"