PKGBUILDs/alarm/uboot-wandboard/PKGBUILD

45 lines
1.1 KiB
Bash
Raw Normal View History

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
2024-06-26 18:44:44 +00:00
pkgver=2024.04
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
'boot.txt'
'mkscr')
2024-06-26 18:44:44 +00:00
md5sums=('13b4c591500c0775b5bc7cfe0d0afef3'
2016-11-25 18:08:19 +00:00
'95f60c0ae1315e986d8a2aee15d5f854'
'021623a04afd29ac3f368977140cfbfd')
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
2018-04-01 16:09:48 +00:00
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
make EXTRAVERSION=-${pkgrel}
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
}