2014-01-27 21:48:49 +00:00
|
|
|
# Template file for 'odroid-u2-uboot'
|
2014-01-28 13:33:17 +00:00
|
|
|
_githash=89f2ab95e7304fe02e5267f1282fbc178550d528
|
2014-01-27 21:48:49 +00:00
|
|
|
pkgname=odroid-u2-uboot
|
2014-01-28 13:33:17 +00:00
|
|
|
version=v2010.12
|
2014-01-27 21:48:49 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="u-boot-${_githash}"
|
|
|
|
hostmakedepends="uboot-mkimage"
|
|
|
|
short_desc="Odroid U2 U-Boot files for SD booting"
|
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://github.com/hardkernel/u-boot"
|
2014-01-28 13:33:17 +00:00
|
|
|
distfiles="https://github.com/hardkernel/u-boot/archive/${_githash}.tar.gz"
|
|
|
|
checksum="29593e636a0d908230910522aab74c09a35b92fee71b165d088f561e85ba3e1d"
|
2014-01-27 21:48:49 +00:00
|
|
|
|
|
|
|
only_for_archs="armv7l"
|
|
|
|
|
|
|
|
_default_scr="boot-auto_edid.scr"
|
|
|
|
|
|
|
|
do_configure() {
|
2014-01-28 13:33:17 +00:00
|
|
|
make mrproper
|
2014-01-27 21:48:49 +00:00
|
|
|
patch -p1 < ${FILESDIR}/config.patch
|
|
|
|
make smdk4412_config
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
unset CFLAGS CXXFLAGS LDFLAGS
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
make ARCH=arm CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
|
|
|
|
else
|
|
|
|
make ARCH=arm
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Building uboot scr's
|
|
|
|
for source in ${FILESDIR}/*.ini; do
|
|
|
|
name=$(basename ${source%.ini})
|
|
|
|
mkimage -A arm -T script -C none -n "${name}" -d $source ${name}.scr
|
|
|
|
done
|
|
|
|
|
|
|
|
cp ${_default_scr} boot.scr
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vinstall u-boot.bin 600 boot
|
|
|
|
|
|
|
|
# Install uboot scr's
|
|
|
|
for scr in *.scr; do
|
|
|
|
echo $scr
|
|
|
|
vinstall $scr 600 boot
|
|
|
|
done
|
|
|
|
}
|