PKGBUILDs/alarm/uboot-udoo/PKGBUILD

43 lines
922 B
Bash
Raw Normal View History

2013-11-23 03:57:53 +00:00
# U-Boot: UDOO
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
2016-09-24 21:20:31 +00:00
pkgname=uboot-udoo
pkgver=2016.09
2014-05-18 23:26:47 +00:00
pkgrel=1
2016-09-24 21:20:31 +00:00
pkgdesc="U-Boot for UDOO Dual and Quad"
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/"
2016-09-24 21:20:31 +00:00
makedepends=('bc' 'dtc' 'git')
replaces=('uboot-udoo-dual' 'uboot-udoo-quad')
2013-11-23 03:57:53 +00:00
license=('GPL')
2016-09-24 21:20:31 +00:00
install=${pkgname}.install
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
2015-01-03 21:48:57 +00:00
'0001-arch-linux-arm-modifications.patch')
2016-09-24 21:20:31 +00:00
md5sums=('2e69dda70eb28f8042d2f9fbeb1feaa1'
'6165211bb53ee947ce58a22828984b5e')
2013-11-23 03:57:53 +00:00
prepare() {
2016-09-24 21:20:31 +00:00
cd u-boot-${pkgver/rc/-rc}
2014-05-18 23:26:47 +00:00
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() {
2016-09-24 21:20:31 +00:00
cd u-boot-${pkgver/rc/-rc}
2013-11-23 03:57:53 +00:00
unset CFLAGS CXXFLAGS LDFLAGS
2013-11-23 03:57:53 +00:00
2016-09-24 21:20:31 +00:00
make distclean
make udoo_defconfig
make EXTRAVERSION=-${pkgrel}
2013-11-23 03:57:53 +00:00
}
2016-09-24 21:20:31 +00:00
package_uboot-udoo() {
cd u-boot-${pkgver/rc/-rc}
2013-11-23 03:57:53 +00:00
mkdir -p "${pkgdir}"/boot
2016-09-24 21:20:31 +00:00
cp SPL u-boot.img "${pkgdir}"/boot
2013-11-23 03:57:53 +00:00
}