2015-04-28 15:16:08 +00:00
|
|
|
# Template file for 'usbarmory-uboot'
|
|
|
|
pkgname=usbarmory-u-boot
|
|
|
|
version=2015.04
|
2015-06-10 07:22:45 +00:00
|
|
|
revision=3
|
2015-04-28 15:16:08 +00:00
|
|
|
wrksrc="u-boot-$version"
|
2015-06-10 07:22:45 +00:00
|
|
|
hostmakedepends="uboot-mkimage bc"
|
2015-04-28 15:16:08 +00:00
|
|
|
short_desc="USB armory U-Boot files for SD booting"
|
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://github.com/hardkernel/u-boot"
|
2015-06-10 07:22:45 +00:00
|
|
|
distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
|
2015-04-28 15:16:08 +00:00
|
|
|
checksum="0a1a70df586655f527befa6f12e184e96ed61b126e5a567382321b17200f5d60"
|
|
|
|
|
2015-06-10 07:22:45 +00:00
|
|
|
only_for_archs="armv7l armv7l-musl"
|
2015-04-28 15:16:08 +00:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
make distclean
|
|
|
|
make usbarmory_config
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
unset CFLAGS CXXFLAGS LDFLAGS
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
make ARCH=arm CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
|
|
|
|
else
|
|
|
|
make ARCH=arm
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vinstall u-boot.imx 600 boot
|
|
|
|
}
|