2015-01-17 14:31:06 +00:00
|
|
|
# Template file for 'odroid-u2-uboot'
|
|
|
|
pkgname=bananapi-uboot
|
|
|
|
version=15.01
|
2015-01-19 14:48:40 +00:00
|
|
|
revision=2
|
2015-01-19 14:00:22 +00:00
|
|
|
hostmakedepends="sunxi-tools uboot-mkimage"
|
2015-01-17 14:31:06 +00:00
|
|
|
short_desc="Banana Pi uboot module"
|
|
|
|
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://github.com/hardkernel/u-boot"
|
|
|
|
distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
|
|
|
|
checksum="935ac90624cc00106a1547b8da2b3e59ab09db9cf658df7126a93738fac74fe5"
|
|
|
|
wrksrc="u-boot-bananapi-bananian-v${version}"
|
|
|
|
|
2015-01-19 13:48:54 +00:00
|
|
|
conf_files="/boot/uEnv.txt"
|
2015-01-17 14:31:06 +00:00
|
|
|
only_for_archs="armv7l"
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
make mrproper
|
|
|
|
make Bananapi_config
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
unset CFLAGS CXXFLAGS LDFLAGS
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
make ARCH=arm CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
|
|
|
|
else
|
|
|
|
make ARCH=arm
|
|
|
|
fi
|
2015-01-19 13:48:54 +00:00
|
|
|
|
2015-01-17 14:31:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2015-01-19 13:48:54 +00:00
|
|
|
# Certain files in `files` directory *NEED* to be installed.
|
|
|
|
# uEnv.txt: The boot configuration file, in pure text for readability.
|
|
|
|
# script.fex: Pure text board configuration, compiled to script.bin.
|
|
|
|
vmkdir boot
|
|
|
|
cp ${FILESDIR}/uEnv.txt ${DESTDIR}/boot/
|
|
|
|
fexc ${FILESDIR}/script.fex ${DESTDIR}/boot/script.bin
|
2015-01-19 14:48:40 +00:00
|
|
|
vinstall u-boot-sunxi-with-spl.bin 644 boot
|
2015-01-17 14:31:06 +00:00
|
|
|
}
|