2013-11-23 03:57:53 +00:00
|
|
|
# U-Boot: UDOO
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgbase=uboot-udoo
|
|
|
|
pkgname=('uboot-udoo-dual' 'uboot-udoo-quad')
|
2015-01-25 01:25:16 +00:00
|
|
|
pkgver=2015.01
|
2014-05-18 23:26:47 +00:00
|
|
|
pkgrel=1
|
2013-11-23 03:57:53 +00:00
|
|
|
arch=('armv7h')
|
2014-05-18 23:26:47 +00:00
|
|
|
url="http://git.denx.de/u-boot.git/"
|
2013-11-23 03:57:53 +00:00
|
|
|
license=('GPL')
|
2015-01-03 21:48:57 +00:00
|
|
|
makedepends=('git' 'bc')
|
2014-05-18 23:26:47 +00:00
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
2015-01-03 21:48:57 +00:00
|
|
|
'0001-arch-linux-arm-modifications.patch')
|
2015-01-25 01:25:16 +00:00
|
|
|
md5sums=('7f08dc9e98a71652bd6968888ed6ec95'
|
2015-01-03 21:48:57 +00:00
|
|
|
'85e269e9211ea5ed2d9ccc7bb8c8d5d7')
|
2013-11-23 03:57:53 +00:00
|
|
|
|
|
|
|
prepare() {
|
2014-05-18 23:26:47 +00:00
|
|
|
cd u-boot-${pkgver}
|
|
|
|
|
2015-01-03 21:48:57 +00:00
|
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
2013-11-23 03:57:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2014-05-18 23:26:47 +00:00
|
|
|
cd u-boot-${pkgver}
|
2013-11-23 03:57:53 +00:00
|
|
|
|
2014-04-06 21:41:08 +00:00
|
|
|
unset CFLAGS CXXFLAGS LDFLAGS
|
2013-11-23 03:57:53 +00:00
|
|
|
|
2014-05-18 23:26:47 +00:00
|
|
|
mkdir bins
|
|
|
|
for i in dl quad; do
|
|
|
|
make distclean
|
|
|
|
make udoo_${i}_config
|
|
|
|
make
|
|
|
|
mv u-boot.imx bins/u-boot-${i}.imx
|
|
|
|
done
|
2013-11-23 03:57:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-udoo-dual() {
|
|
|
|
pkgdesc="U-Boot for UDOO Dual"
|
|
|
|
conflicts=('uboot-udoo-quad')
|
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-05-18 23:26:47 +00:00
|
|
|
cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}"/boot/u-boot.imx
|
2013-11-23 03:57:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-udoo-quad() {
|
|
|
|
pkgdesc="U-Boot for UDOO Quad"
|
|
|
|
conflicts=('uboot-udoo-dual')
|
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2014-05-18 23:26:47 +00:00
|
|
|
cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}"/boot/u-boot.imx
|
2013-11-23 03:57:53 +00:00
|
|
|
}
|