mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
f9f41b0fb8
The board started with green led turned on and /sys/class/led/green:ph20:led1 was missing Patch made following the directions found on http://linux-sunxi.org/Cubieboard/Programming/StatusLEDs
69 lines
1.8 KiB
Bash
69 lines
1.8 KiB
Bash
# U-Boot: sunXi
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=4
|
|
|
|
pkgbase=uboot-sunxi
|
|
pkgname=('uboot-cubieboard2' 'uboot-cubietruck')
|
|
pkgver=2014.01
|
|
pkgrel=4
|
|
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
|
|
source=("https://github.com/linux-sunxi/u-boot-sunxi/archive/${_commit}.tar.gz"
|
|
'alarm.patch'
|
|
'cubieboard2.fex' 'cubieboard2.env'
|
|
'cubietruck.fex' 'cubietruck.env')
|
|
md5sums=('019e2a420fa9d9a5e24aaf9cd8de2104'
|
|
'f2f60fca0d93ef62c6a95c4f3254a829'
|
|
'36c04988cecd53151f3f5ff5c48d76a9'
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
'c898ab1b57f474d620f5704b2a53d87c'
|
|
'd41d8cd98f00b204e9800998ecf8427e')
|
|
|
|
prepare() {
|
|
cd u-boot-sunxi-${_commit}
|
|
patch -p1 -i "${srcdir}"/alarm.patch
|
|
}
|
|
|
|
build() {
|
|
cd u-boot-sunxi-${_commit}
|
|
|
|
unset CFLAGS
|
|
unset CXXFLAGS
|
|
unset LDFLAGS
|
|
|
|
for i in Cubieboard2 Cubietruck; do
|
|
mkdir ../bin_${i}
|
|
make distclean
|
|
make ${i}
|
|
mv u-boot-sunxi-with-spl.bin ../bin_${i}
|
|
done
|
|
}
|
|
|
|
package_uboot-cubieboard2() {
|
|
pkgdesc="U-Boot for Cubieboard 2"
|
|
install=${pkgbase}.install
|
|
conflicts=('uboot-cubietruck')
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
cp bin_Cubieboard2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
fex2bin cubieboard2.fex "${pkgdir}"/boot/script.bin
|
|
cp cubieboard2.env "${pkgdir}"/boot/uEnv.txt
|
|
}
|
|
|
|
package_uboot-cubietruck() {
|
|
pkgdesc="U-Boot for Cubietruck"
|
|
install=${pkgbase}.install
|
|
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
|
|
}
|