2014-12-04 12:29:27 +01:00
|
|
|
# Template file for 'beaglebone-uboot'
|
|
|
|
pkgname=beaglebone-uboot
|
2014-12-05 08:23:00 +01:00
|
|
|
reverts=2014.10_2
|
|
|
|
version=2014.07
|
|
|
|
revision=1
|
2014-12-04 12:29:27 +01:00
|
|
|
wrksrc="u-boot-${version}"
|
|
|
|
hostmakedepends="bc"
|
|
|
|
short_desc="Beaglebone and BeagleBone Black U-Boot loader"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.denx.de/wiki/U-Boot/WebHome"
|
|
|
|
distfiles="http://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
|
2014-12-05 08:23:00 +01:00
|
|
|
checksum=b4f83b8db325c21671a997198ec3a373e2e00dde2fcf17be9b9afd7cfd727f56
|
2014-12-04 12:29:27 +01:00
|
|
|
|
|
|
|
only_for_archs="armv7l"
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|