PKGBUILDs/alarm/uboot-wandboard/PKGBUILD
2015-01-25 00:28:06 +00:00

64 lines
1.6 KiB
Bash

# U-Boot: Wandboard
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgbase=uboot-wandboard
pkgname=('uboot-wandboard-solo' 'uboot-wandboard-dual' 'uboot-wandboard-quad')
pkgver=2015.01
pkgrel=1
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('git' 'bc')
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
'0001-arch-linux-arm-modifications.patch')
md5sums=('7f08dc9e98a71652bd6968888ed6ec95'
'6947a481ccb92e5a7324ec5fe85a064e')
prepare() {
cd u-boot-${pkgver}
git apply ../0001-arch-linux-arm-modifications.patch
}
build() {
cd u-boot-${pkgver}
unset LDFLAGS
mkdir bins
for i in solo dl quad; do
make distclean
make wandboard_${i}_config
make
mv u-boot.imx bins/u-boot-${i}.imx
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
cp u-boot-${pkgver}/bins/u-boot-solo.imx "${pkgdir}"/boot/u-boot.imx
}
package_uboot-wandboard-dual() {
pkgdesc="U-Boot for Wandboard Dual"
conflicts=('uboot-wandboard-solo' 'uboot-wandboard-quad')
install=${pkgbase}.install
mkdir -p "${pkgdir}"/boot
cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}"/boot/u-boot.imx
}
package_uboot-wandboard-quad() {
pkgdesc="U-Boot for Wandboard Quad"
conflicts=('uboot-wandboard-solo' 'uboot-wandboard-dual')
install=${pkgbase}.install
mkdir -p "${pkgdir}"/boot
cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}"/boot/u-boot.imx
}