2013-07-26 01:34:52 +00:00
|
|
|
# U-Boot: Wandboard
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
2015-11-03 01:11:03 +00:00
|
|
|
pkgname=uboot-wandboard
|
2016-11-25 18:08:19 +00:00
|
|
|
pkgver=2016.11
|
2014-03-19 21:35:55 +00:00
|
|
|
pkgrel=1
|
2015-11-03 01:11:03 +00:00
|
|
|
pkgdesc="U-Boot for Wandboard"
|
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')
|
2015-11-03 01:11:03 +00:00
|
|
|
replaces=('uboot-wandboard-solo' 'uboot-wandboard-dual' 'uboot-wandboard-quad')
|
|
|
|
install=${pkgname}.install
|
2016-11-25 18:08:19 +00:00
|
|
|
backup=('boot/boot.txt' 'boot/boot.scr')
|
2014-03-19 21:35:55 +00:00
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
2016-11-25 18:08:19 +00:00
|
|
|
'0001-arch-linux-arm-modifications.patch'
|
|
|
|
'boot.txt'
|
|
|
|
'mkscr')
|
|
|
|
md5sums=('ca1f6e019d08aff8d0ca1beb2e66737d'
|
|
|
|
'32b89fbb8f974ad0d57d0187d73ccd78'
|
|
|
|
'95f60c0ae1315e986d8a2aee15d5f854'
|
|
|
|
'021623a04afd29ac3f368977140cfbfd')
|
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
|
|
|
|
2015-11-03 01:11:03 +00:00
|
|
|
make distclean
|
|
|
|
make wandboard_defconfig
|
|
|
|
make
|
2013-07-26 01:34:52 +00:00
|
|
|
}
|
|
|
|
|
2015-11-03 01:11:03 +00:00
|
|
|
package() {
|
|
|
|
cd u-boot-${pkgver}
|
2013-07-26 01:34:52 +00:00
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2015-11-03 01:11:03 +00:00
|
|
|
cp SPL u-boot.img "${pkgdir}"/boot
|
2016-11-25 18:08:19 +00:00
|
|
|
|
|
|
|
install -Dm644 ../boot.txt "${pkgdir}"/boot/boot.txt
|
|
|
|
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
|
|
|
|
install -Dm755 ../mkscr "${pkgdir}"/boot/mkscr
|
2013-07-26 01:34:52 +00:00
|
|
|
}
|