2013-07-31 03:56:28 +00:00
|
|
|
# U-Boot: sunXi
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgbase=uboot-sunxi
|
2014-03-15 12:19:48 +00:00
|
|
|
pkgname=('uboot-cubieboard2' 'uboot-cubietruck')
|
|
|
|
pkgver=2014.01
|
|
|
|
pkgrel=1
|
2013-07-31 03:56:28 +00:00
|
|
|
arch=('armv7h')
|
|
|
|
url="https://github.com/linux-sunxi/u-boot-sunxi/tree/sunxi-current"
|
|
|
|
license=('GPL')
|
|
|
|
makedepends=('sunxi-tools')
|
2014-03-15 12:19:48 +00:00
|
|
|
_commit=660aa6fd9e1c25baabfcf4dfce42381547f5f59b
|
2013-07-31 03:56:28 +00:00
|
|
|
source=("https://github.com/linux-sunxi/u-boot-sunxi/archive/${_commit}.tar.gz"
|
2013-07-31 06:46:26 +00:00
|
|
|
'alarm.patch'
|
2014-03-15 12:19:48 +00:00
|
|
|
'cubieboard2.fex' 'cubieboard2.env'
|
|
|
|
'cubietruck.fex' 'cubietruck.env')
|
|
|
|
md5sums=('019e2a420fa9d9a5e24aaf9cd8de2104'
|
|
|
|
'f2f60fca0d93ef62c6a95c4f3254a829'
|
2013-07-31 07:04:31 +00:00
|
|
|
'7423919c2ead208c5a04756edb6b948c'
|
2014-03-15 12:19:48 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
|
|
'c898ab1b57f474d620f5704b2a53d87c'
|
2014-03-14 19:35:16 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e')
|
2013-07-31 03:56:28 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd u-boot-sunxi-${_commit}
|
|
|
|
patch -p1 -i "${srcdir}"/alarm.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd u-boot-sunxi-${_commit}
|
2014-03-15 12:19:48 +00:00
|
|
|
|
2013-07-31 03:56:28 +00:00
|
|
|
unset CFLAGS
|
|
|
|
unset CXXFLAGS
|
2014-03-14 19:26:11 +00:00
|
|
|
unset LDFLAGS
|
2014-03-15 12:19:48 +00:00
|
|
|
|
|
|
|
for i in Cubieboard2 Cubietruck; do
|
|
|
|
mkdir ../bin_${i}
|
2013-07-31 03:56:28 +00:00
|
|
|
make distclean
|
|
|
|
make ${i}
|
2014-03-15 12:19:48 +00:00
|
|
|
mv u-boot-sunxi-with-spl.bin ../bin_${i}
|
2013-07-31 03:56:28 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-cubieboard2() {
|
|
|
|
pkgdesc="U-Boot for Cubieboard 2"
|
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-03-15 12:19:48 +00:00
|
|
|
cp bin_Cubieboard2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2013-07-31 03:56:28 +00:00
|
|
|
|
|
|
|
fex2bin cubieboard2.fex "${pkgdir}"/boot/script.bin
|
2013-07-31 06:46:26 +00:00
|
|
|
cp cubieboard2.env "${pkgdir}"/boot/uEnv.txt
|
2013-07-31 03:56:28 +00:00
|
|
|
}
|
2014-03-15 12:19:48 +00:00
|
|
|
|
|
|
|
package_uboot-cubietruck() {
|
|
|
|
pkgdesc="U-Boot for Cubietruck"
|
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
cp bin_Cubietruck/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
fex2bin cubietruck.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp cubietruck.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|