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