PKGBUILDs/alarm/uboot-sunxi/PKGBUILD

70 lines
1.8 KiB
Bash
Raw Normal View History

2013-07-31 03:56:28 +00:00
# U-Boot: sunXi
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgbase=uboot-sunxi
pkgname=('uboot-cubieboard2' 'uboot-cubietruck')
pkgver=2014.01
2014-03-19 21:06:22 +00:00
pkgrel=3
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')
backup=(boot/uEnv.txt)
_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'
'cubieboard2.fex' 'cubieboard2.env'
'cubietruck.fex' 'cubietruck.env')
md5sums=('019e2a420fa9d9a5e24aaf9cd8de2104'
'f2f60fca0d93ef62c6a95c4f3254a829'
2013-07-31 07:04:31 +00:00
'7423919c2ead208c5a04756edb6b948c'
'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}
2013-07-31 03:56:28 +00:00
unset CFLAGS
unset CXXFLAGS
2014-03-14 19:26:11 +00:00
unset LDFLAGS
for i in Cubieboard2 Cubietruck; do
mkdir ../bin_${i}
2013-07-31 03:56:28 +00:00
make distclean
make ${i}
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
2014-03-19 21:06:22 +00:00
conflicts=('uboot-cubietruck')
2013-07-31 03:56:28 +00:00
mkdir -p "${pkgdir}"/boot
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
}
package_uboot-cubietruck() {
pkgdesc="U-Boot for Cubietruck"
install=${pkgbase}.install
2014-03-19 21:06:22 +00:00
conflicts=('uboot-cubieboard2')
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
}