2013-07-31 03:56:28 +00:00
|
|
|
# U-Boot: sunXi
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgbase=uboot-sunxi
|
2015-06-13 01:22:25 +00:00
|
|
|
pkgname=('uboot-a10-olinuxino-lime'
|
|
|
|
'uboot-a10s-olinuxino-micro'
|
|
|
|
'uboot-a13-olinuxino'
|
|
|
|
'uboot-a13-olinuxino-micro'
|
|
|
|
'uboot-a20-olinuxino-lime'
|
|
|
|
'uboot-a20-olinuxino-lime2'
|
|
|
|
'uboot-a20-olinuxino-micro'
|
|
|
|
'uboot-cubieboard'
|
|
|
|
'uboot-cubieboard2'
|
|
|
|
'uboot-cubietruck'
|
|
|
|
'uboot-pcduino'
|
2015-08-23 20:56:24 +00:00
|
|
|
'uboot-pcduino3'
|
|
|
|
'uboot-pcduino3-nano')
|
2016-07-19 01:09:00 +00:00
|
|
|
pkgver=2016.07
|
2015-06-13 01:22:25 +00:00
|
|
|
pkgrel=1
|
2013-07-31 03:56:28 +00:00
|
|
|
arch=('armv7h')
|
2015-01-19 21:45:19 +00:00
|
|
|
url="http://git.denx.de/u-boot.git/"
|
2013-07-31 03:56:28 +00:00
|
|
|
license=('GPL')
|
2015-08-23 20:56:24 +00:00
|
|
|
makedepends=('git' 'bc' 'dtc')
|
2015-01-19 21:45:19 +00:00
|
|
|
backup=(boot/boot.txt boot/boot.scr)
|
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
|
|
|
'0001-arch-linux-arm-modifications.patch'
|
|
|
|
'boot.txt'
|
|
|
|
'mkscr')
|
2016-07-19 01:09:00 +00:00
|
|
|
md5sums=('425a3fa610a7d972e5092a0e92276c70'
|
2016-06-06 01:50:56 +00:00
|
|
|
'a9303cc01e222117a870e1166266e02c'
|
2015-01-19 21:45:19 +00:00
|
|
|
'b05eae006e4e35176ee3032eba1c4663'
|
|
|
|
'021623a04afd29ac3f368977140cfbfd')
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
boards=('A10-OLinuXino-Lime'
|
|
|
|
'A10s-OLinuXino-M'
|
2015-03-21 17:20:35 +00:00
|
|
|
'A13-OLinuXino'
|
2015-01-19 21:45:19 +00:00
|
|
|
'A13-OLinuXinoM'
|
2015-06-13 01:22:25 +00:00
|
|
|
'A20-OLinuXino-Lime'
|
|
|
|
'A20-OLinuXino-Lime2'
|
|
|
|
'A20-OLinuXino_MICRO'
|
|
|
|
'Cubieboard'
|
|
|
|
'Cubieboard2'
|
|
|
|
'Cubietruck'
|
|
|
|
'Linksprite_pcDuino'
|
2015-08-23 20:56:24 +00:00
|
|
|
'Linksprite_pcDuino3'
|
|
|
|
'Linksprite_pcDuino3_Nano')
|
2015-01-19 21:45:19 +00:00
|
|
|
|
2013-07-31 03:56:28 +00:00
|
|
|
prepare() {
|
2015-01-19 21:45:19 +00:00
|
|
|
cd u-boot-${pkgver}
|
|
|
|
|
|
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
2013-07-31 03:56:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2015-01-19 21:45:19 +00:00
|
|
|
cd u-boot-${pkgver}
|
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
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
for i in ${boards[@]}; 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
|
2015-01-19 21:45:19 +00:00
|
|
|
make EXTRAVERSION=-${pkgrel}
|
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
|
2015-01-19 21:45:19 +00:00
|
|
|
|
|
|
|
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt ../boot.scr
|
2013-07-31 03:56:28 +00:00
|
|
|
}
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-a10-olinuxino-lime() {
|
|
|
|
pkgdesc="U-Boot for A10 OLinuXino Lime"
|
2015-01-24 03:52:50 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_A10-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2015-01-24 03:52:50 +00:00
|
|
|
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
|
|
}
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-a10s-olinuxino-micro() {
|
|
|
|
pkgdesc="U-Boot for A10s OLinuXino Micro"
|
2013-07-31 03:56:28 +00:00
|
|
|
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
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_A10s-OLinuXino-M/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2013-07-31 03:56:28 +00:00
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
2013-07-31 03:56:28 +00:00
|
|
|
}
|
2014-03-15 12:19:48 +00:00
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-a13-olinuxino() {
|
|
|
|
pkgdesc="U-Boot for A13 OLinuXino"
|
2014-03-15 12:19:48 +00:00
|
|
|
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
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_A13-OLinuXino/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2014-06-08 20:32:56 +00:00
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
2014-06-08 20:32:56 +00:00
|
|
|
}
|
2014-06-09 05:26:58 +00:00
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-a13-olinuxino-micro() {
|
|
|
|
pkgdesc="U-Boot for A13 OLinuXino Micro"
|
2014-06-09 05:26:58 +00:00
|
|
|
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
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_A13-OLinuXinoM/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2014-06-09 05:26:58 +00:00
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
2014-06-09 05:26:58 +00:00
|
|
|
}
|
2014-07-22 05:44:48 +00:00
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-a20-olinuxino-lime() {
|
|
|
|
pkgdesc="U-Boot for A20 OLinuXino Lime"
|
2015-01-28 05:01:43 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_A20-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2015-01-28 05:01:43 +00:00
|
|
|
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
|
|
}
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-a20-olinuxino-lime2() {
|
|
|
|
pkgdesc="U-Boot for A20 OLinuXino Lime2"
|
2015-01-21 08:28:05 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_A20-OLinuXino-Lime2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2015-01-21 08:28:05 +00:00
|
|
|
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
|
|
}
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-a20-olinuxino-micro() {
|
|
|
|
pkgdesc="U-Boot for A20 OLinuXino Micro"
|
2015-01-21 08:28:05 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_A20-OLinuXino_MICRO/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2015-01-21 08:28:05 +00:00
|
|
|
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
|
|
}
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-cubieboard() {
|
|
|
|
pkgdesc="U-Boot for Cubieboard"
|
2015-03-21 17:20:35 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_Cubieboard/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin
|
2015-03-21 17:20:35 +00:00
|
|
|
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
|
|
}
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-cubieboard2() {
|
|
|
|
pkgdesc="U-Boot for Cubieboard 2"
|
2014-07-22 05:44:48 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_Cubieboard2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin
|
2014-07-22 05:44:48 +00:00
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
2014-07-22 05:44:48 +00:00
|
|
|
}
|
2014-07-26 16:17:06 +00:00
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-cubietruck() {
|
|
|
|
pkgdesc="U-Boot for Cubietruck"
|
2014-07-26 16:17:06 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_Cubietruck/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin
|
2014-07-26 16:17:06 +00:00
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
2014-07-26 16:17:06 +00:00
|
|
|
}
|
|
|
|
|
2015-06-13 01:22:25 +00:00
|
|
|
package_uboot-pcduino() {
|
|
|
|
pkgdesc="U-Boot for pcDuino"
|
2014-07-26 16:17:06 +00:00
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -d "${pkgdir}"/boot
|
2015-06-13 01:22:25 +00:00
|
|
|
install -Dm644 bin_Linksprite_pcDuino/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2014-07-26 16:17:06 +00:00
|
|
|
|
2015-01-19 21:45:19 +00:00
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
2014-07-26 16:17:06 +00:00
|
|
|
}
|
2015-01-28 05:01:43 +00:00
|
|
|
|
|
|
|
package_uboot-pcduino3() {
|
|
|
|
pkgdesc="U-Boot for pcDuino3"
|
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
install -d "${pkgdir}"/boot
|
|
|
|
install -Dm644 bin_Linksprite_pcDuino3/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
|
|
}
|
2015-08-23 20:56:24 +00:00
|
|
|
|
|
|
|
package_uboot-pcduino3-nano() {
|
|
|
|
pkgdesc="U-Boot for pcDuino3 Nano"
|
|
|
|
install=${pkgbase}.install
|
|
|
|
provides=('uboot-sunxi')
|
|
|
|
conflicts=('uboot-sunxi')
|
|
|
|
|
|
|
|
install -d "${pkgdir}"/boot
|
|
|
|
install -Dm644 bin_Linksprite_pcDuino3_Nano/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
|
|
}
|