cubieboard2-boot: switch to 2 partitions layout (boot and root).

This commit is contained in:
Juan RP 2014-01-26 00:53:16 +01:00
parent ee9102221f
commit 1c7d23d3a7

View file

@ -1,9 +1,9 @@
# Template file for 'cubieboard2-uboot'
pkgname=cubieboard2-uboot
version=v2013.10
revision=2
revision=3
wrksrc="u-boot-sunxi-${version/v/}-sunxi"
hostmakedepends="sunxi-tools"
hostmakedepends="sunxi-tools uboot-mkimage"
short_desc="Cubieboard2 U-Boot files for SD booting"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -12,27 +12,23 @@ distfiles="https://github.com/linux-sunxi/u-boot-sunxi/archive/${version}-sunxi.
checksum=a2a606939574795598d29f04852b1a40ddfcced96e9535d1d31fad30c68e0326
create_srcdir=yes
onlu_for_archs="armv7l"
only_for_archs="armv7l"
do_build() {
unset CFLAGS CXXFLAGS LDFLAGS
for i in Cubieboard2; do
mkdir bin_${i}
make distclean
if [ "$CROSS_BUILD" ]; then
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}- ${i}
else
make ${i}
fi
mv u-boot.bin spl/sunxi-spl.bin bin_${i}
done
if [ "$CROSS_BUILD" ]; then
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}- Cubieboard2
else
make Cubieboard2
fi
mkimage -C none -A arm -T script -d ${FILESDIR}/cubieboard2.bootcmd boot.scr
fex2bin ${FILESDIR}/cubieboard2.fex script.bin
}
do_install() {
vmkdir boot
cp bin_Cubieboard2/{u-boot.bin,sunxi-spl.bin} ${DESTDIR}/boot
fex2bin ${FILESDIR}/cubieboard2.fex ${DESTDIR}/boot/script.bin
vinstall u-boot-sunxi-with-spl.bin 644 boot
vinstall script.bin 644 boot
vinstall boot.scr 644 boot
vinstall ${FILESDIR}/cubieboard2.env 644 boot uEnv.txt
}