PKGBUILDs/alarm/uboot-sunxi/PKGBUILD

52 lines
1.2 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')
pkgver=2013.07
2013-07-31 06:46:26 +00:00
pkgrel=2
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')
_commit=29689232f8a4d1640e551ef433176b81cecfa9c7
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')
2013-07-31 03:56:28 +00:00
md5sums=('7612f5c721a2804a36b41ba33925be02'
'8b95ce286b84f52928bc0b4b07edd00a'
2013-07-31 06:46:26 +00:00
'868c5a53041184654754a3f8751b8e9a'
'3bd9b63f722905f18f750c1eec98ce1e')
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}
unset CFLAGS
unset CXXFLAGS
for i in Cubieboard2; do
mkdir bin_${i}
make distclean
make ${i}
mv u-boot.bin spl/sunxi-spl.bin bin_${i}
done
}
package_uboot-cubieboard2() {
pkgdesc="U-Boot for Cubieboard 2"
install=${pkgbase}.install
mkdir -p "${pkgdir}"/boot
cp u-boot-sunxi-${_commit}/bin_Cubieboard2/{u-boot.bin,sunxi-spl.bin} "${pkgdir}"/boot
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
}