2013-07-31 03:56:28 +00:00
|
|
|
# U-Boot: sunXi
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgbase=uboot-sunxi
|
2014-06-08 20:32:56 +00:00
|
|
|
pkgname=('uboot-cubieboard2' 'uboot-cubietruck' 'uboot-iteaduino_plus_a10' 'uboot-iteaduino_plus_a20'
|
2014-07-26 16:17:06 +00:00
|
|
|
'uboot-hackberry' 'uboot-a20-olinuxino_micro' 'uboot-a13-olinuxinom'
|
2014-08-05 18:06:16 +00:00
|
|
|
'uboot-a10s-olinuxino-micro' 'uboot-a10s-olinuxino-micro-lcd7')
|
2014-07-22 13:27:43 +00:00
|
|
|
pkgver=2014.04
|
2014-07-22 05:50:55 +00:00
|
|
|
pkgrel=9
|
2013-07-31 03:56:28 +00:00
|
|
|
arch=('armv7h')
|
2014-06-12 02:07:36 +00:00
|
|
|
url="https://github.com/linux-sunxi/u-boot-sunxi"
|
2013-07-31 03:56:28 +00:00
|
|
|
license=('GPL')
|
|
|
|
makedepends=('sunxi-tools')
|
2014-03-18 22:39:31 +00:00
|
|
|
backup=(boot/uEnv.txt)
|
2014-07-04 18:24:00 +00:00
|
|
|
_commit=38f2efaf1157af117edcff5874568df0731e1ec0
|
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'
|
2014-06-07 06:21:48 +00:00
|
|
|
'cubietruck.fex' 'cubietruck.env'
|
|
|
|
'iteaduino_plus_a10.fex' 'iteaduino_plus_a10.env'
|
2014-06-08 20:32:56 +00:00
|
|
|
'iteaduino_plus_a20.fex' 'iteaduino_plus_a20.env'
|
2014-06-09 05:26:58 +00:00
|
|
|
'hackberry.fex' 'hackberry.env'
|
2014-07-22 05:44:48 +00:00
|
|
|
'a20-olinuxino_micro.fex' 'a20-olinuxino_micro.env'
|
2014-07-26 16:17:06 +00:00
|
|
|
'a13-olinuxinom.fex' 'a13-olinuxinom.env'
|
|
|
|
'a10s-olinuxino-m.fex' 'a10s-olinuxino-m.env'
|
|
|
|
'a10s-olinuxino-m-lcd7.fex' 'a10s-olinuxino-m-lcd7.env')
|
2014-07-04 18:24:00 +00:00
|
|
|
md5sums=('7b28f844d7b143b4f214cab9582681c8'
|
2014-06-13 00:29:47 +00:00
|
|
|
'c52abd6e8b1bc6d367809b5a7950d733'
|
2014-04-06 00:18:51 +00:00
|
|
|
'36c04988cecd53151f3f5ff5c48d76a9'
|
2014-03-15 12:19:48 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
|
|
'c898ab1b57f474d620f5704b2a53d87c'
|
2014-06-07 06:21:48 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
2014-06-07 19:35:31 +00:00
|
|
|
'1bd3355ad6c6c6976c664223958db3f4'
|
2014-06-07 06:21:48 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
2014-06-07 19:35:31 +00:00
|
|
|
'4b85ce18f33c9b4a6338fa973df44f54'
|
2014-06-09 05:26:58 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
|
|
'd19b25217059a2594c53ffe0eb1e0a12'
|
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
|
|
'2cac23939b761d1ea668faa2c68b3688'
|
2014-07-22 05:44:48 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
|
|
'0e4011773c1ec3aff4d5ca18fae84672'
|
2014-07-26 16:17:06 +00:00
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
|
|
'42275d119245b774231f596b02a1886e'
|
|
|
|
'd41d8cd98f00b204e9800998ecf8427e'
|
|
|
|
'a85c332f2ed96b02354bd16275aeca3f'
|
2014-06-12 02:07:36 +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
|
|
|
|
2014-07-26 16:17:06 +00:00
|
|
|
for i in Cubieboard2 Cubietruck Iteaduino_Plus_A10 Iteaduino_Plus_A20 Hackberry A20-OLinuXino_MICRO A13-OLinuXinoM A10s-OLinuXino-M; do
|
2014-03-15 12:19:48 +00:00
|
|
|
mkdir ../bin_${i}
|
2013-07-31 03:56:28 +00:00
|
|
|
make distclean
|
2014-06-07 15:27:41 +00:00
|
|
|
make ${i}_config
|
2014-08-05 15:48:50 +00:00
|
|
|
make
|
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
|
2014-07-04 18:24:00 +00:00
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
2013-07-31 03:56:28 +00:00
|
|
|
|
|
|
|
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
|
2014-07-04 18:24:00 +00:00
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
2014-03-15 12:19:48 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2014-06-07 06:21:48 +00:00
|
|
|
|
|
|
|
package_uboot-iteaduino_plus_a10() {
|
|
|
|
pkgdesc="U-Boot for Iteaduino Plus A10"
|
|
|
|
install=${pkgbase}.install
|
2014-07-04 18:24:00 +00:00
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
2014-06-07 06:21:48 +00:00
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-06-07 15:27:41 +00:00
|
|
|
cp bin_Iteaduino_Plus_A10/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2014-06-07 06:21:48 +00:00
|
|
|
|
|
|
|
fex2bin iteaduino_plus_a10.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp iteaduino_plus_a10.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-iteaduino_plus_a20() {
|
|
|
|
pkgdesc="U-Boot for Iteaduino Plus A20"
|
|
|
|
install=${pkgbase}.install
|
2014-07-04 18:24:00 +00:00
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
2014-06-07 06:21:48 +00:00
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-06-07 15:27:41 +00:00
|
|
|
cp bin_Iteaduino_Plus_A20/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2014-06-07 06:21:48 +00:00
|
|
|
|
|
|
|
fex2bin iteaduino_plus_a20.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp iteaduino_plus_a20.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|
|
|
|
|
2014-06-08 20:32:56 +00:00
|
|
|
package_uboot-hackberry() {
|
|
|
|
pkgdesc="U-Boot for Hackberry"
|
|
|
|
install=${pkgbase}.install
|
2014-07-04 18:24:00 +00:00
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
2014-06-08 20:32:56 +00:00
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
cp bin_Hackberry/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
fex2bin hackberry.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp hackberry.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|
2014-06-09 05:26:58 +00:00
|
|
|
|
|
|
|
package_uboot-a20-olinuxino_micro() {
|
|
|
|
pkgdesc="U-Boot for A20 OLinuXino Micro"
|
|
|
|
install=${pkgbase}.install
|
2014-07-04 18:24:00 +00:00
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
2014-06-09 05:26:58 +00:00
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
cp bin_A20-OLinuXino_MICRO/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
fex2bin a20-olinuxino_micro.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp a20-olinuxino_micro.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|
2014-07-22 05:44:48 +00:00
|
|
|
|
|
|
|
package_uboot-a13-olinuxinom() {
|
|
|
|
pkgdesc="U-Boot for A13 OLinuXino Micro"
|
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
cp bin_A13-OLinuXinoM/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
fex2bin a13-olinuxinom.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp a13-olinuxinom.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|
2014-07-26 16:17:06 +00:00
|
|
|
|
|
|
|
package_uboot-a10s-olinuxino-m() {
|
|
|
|
pkgdesc="U-Boot for A10s OLinuXino Micro"
|
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
cp bin_A10s-OLinuXino-M/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
fex2bin a10s-olinuxino-m.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp a10s-olinuxino-m.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package_uboot-a10s-olinuxino-m-lcd7() {
|
|
|
|
pkgdesc="U-Boot for A10s OLinuXino Micro with 7 inch LCD"
|
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
cp bin_A10s-OLinuXino-M/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
fex2bin a10s-olinuxino-m-lcd7.fex "${pkgdir}"/boot/script.bin
|
|
|
|
cp a10s-olinuxino-m-lcd7.env "${pkgdir}"/boot/uEnv.txt
|
|
|
|
}
|