31 lines
809 B
Bash
31 lines
809 B
Bash
# Template file for 'beaglebone-uboot'
|
|
pkgname=beaglebone-uboot
|
|
version=2016.11
|
|
revision=1
|
|
wrksrc="u-boot-${version}"
|
|
hostmakedepends="bc dtc"
|
|
short_desc="Beaglebone and BeagleBone Black U-Boot loader"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://www.denx.de/wiki/U-Boot/WebHome"
|
|
distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
|
|
checksum=45813e6565dcc0436abe6752624324cdbf5f3ac106570d76d32b46ec529bcdc8
|
|
|
|
only_for_archs="armv7l armv7l-musl"
|
|
|
|
do_build() {
|
|
unset CFLAGS CXXFLAGS LDFLAGS
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}- am335x_evm_config
|
|
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}- ${makejobs}
|
|
else
|
|
make am335x_evm_config
|
|
make ${makejobs}
|
|
fi
|
|
}
|
|
do_install() {
|
|
vinstall MLO 644 boot
|
|
vinstall u-boot.img 644 boot
|
|
}
|