2013-07-26 01:34:52 +00:00
|
|
|
# U-Boot: Wandboard
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgbase=uboot-wandboard
|
|
|
|
pkgname=('uboot-wandboard-solo' 'uboot-wandboard-dual' 'uboot-wandboard-quad')
|
2015-06-07 23:57:33 +00:00
|
|
|
pkgver=2015.04
|
2014-03-19 21:35:55 +00:00
|
|
|
pkgrel=1
|
2013-07-26 01:34:52 +00:00
|
|
|
arch=('armv7h')
|
|
|
|
url="http://git.denx.de/u-boot.git/"
|
|
|
|
license=('GPL')
|
2014-11-23 21:01:41 +00:00
|
|
|
makedepends=('git' 'bc')
|
2014-03-19 21:35:55 +00:00
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
2014-11-23 21:01:41 +00:00
|
|
|
'0001-arch-linux-arm-modifications.patch')
|
2015-06-07 23:57:33 +00:00
|
|
|
md5sums=('570bdc2c47270c2a98ca60ff6c5c74cd'
|
|
|
|
'7b1bcd38116d27e450705948cb8a87a7')
|
2013-07-26 01:34:52 +00:00
|
|
|
|
|
|
|
prepare() {
|
2014-03-19 21:35:55 +00:00
|
|
|
cd u-boot-${pkgver}
|
2014-11-23 21:01:41 +00:00
|
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
2013-07-26 01:34:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2014-03-19 21:35:55 +00:00
|
|
|
cd u-boot-${pkgver}
|
2013-07-26 01:34:52 +00:00
|
|
|
|
2014-11-23 21:01:41 +00:00
|
|
|
unset LDFLAGS
|
2013-07-26 01:34:52 +00:00
|
|
|
|
2014-05-17 19:16:44 +00:00
|
|
|
mkdir bins
|
2013-07-26 01:34:52 +00:00
|
|
|
for i in solo dl quad; do
|
|
|
|
make distclean
|
|
|
|
make wandboard_${i}_config
|
|
|
|
make
|
2014-05-17 19:16:44 +00:00
|
|
|
mv u-boot.imx bins/u-boot-${i}.imx
|
2013-07-26 01:34:52 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-wandboard-solo() {
|
|
|
|
pkgdesc="U-Boot for Wandboard Solo"
|
|
|
|
conflicts=('uboot-wandboard-dual' 'uboot-wandboard-quad')
|
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-05-17 19:16:44 +00:00
|
|
|
cp u-boot-${pkgver}/bins/u-boot-solo.imx "${pkgdir}"/boot/u-boot.imx
|
2013-07-26 01:34:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-wandboard-dual() {
|
|
|
|
pkgdesc="U-Boot for Wandboard Dual"
|
|
|
|
conflicts=('uboot-wandboard-solo' 'uboot-wandboard-quad')
|
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-05-17 19:16:44 +00:00
|
|
|
cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}"/boot/u-boot.imx
|
2013-07-26 01:34:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-wandboard-quad() {
|
|
|
|
pkgdesc="U-Boot for Wandboard Quad"
|
|
|
|
conflicts=('uboot-wandboard-solo' 'uboot-wandboard-dual')
|
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-05-17 19:16:44 +00:00
|
|
|
cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}"/boot/u-boot.imx
|
2013-07-26 01:34:52 +00:00
|
|
|
}
|