PKGBUILDs/alarm/uboot-boundary/PKGBUILD

52 lines
1.2 KiB
Bash
Raw Normal View History

2016-11-27 22:19:23 +00:00
# U-Boot: Nitrogen6x/SabreLite
2014-05-03 16:32:42 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
2016-11-27 22:19:23 +00:00
pkgname='uboot-boundary'
pkgver=2016.11
2015-06-28 22:34:25 +00:00
pkgrel=1
2016-11-27 22:19:23 +00:00
pkgdesc="U-Boot for Nitrogen6x/SabreLite"
2014-05-03 16:32:42 +00:00
arch=('armv7h')
2016-11-27 22:19:23 +00:00
url='http://www.denx.de/wiki/U-Boot/WebHome'
2014-05-03 16:32:42 +00:00
license=('GPL')
2016-11-27 22:19:23 +00:00
install=$pkgname.install
backup=('boot/boot.txt' 'boot/boot.scr')
depends=('mtd-utils')
makedepends=('bc' 'dtc' 'git')
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
2015-06-28 22:34:25 +00:00
'0001-arch-linux-arm-modifications.patch'
2016-11-27 22:19:23 +00:00
'boot.txt'
'mkscr')
md5sums=('ca1f6e019d08aff8d0ca1beb2e66737d'
'872b9eaa45228ac33e8e0a7383b9d0e3'
'95f60c0ae1315e986d8a2aee15d5f854'
'021623a04afd29ac3f368977140cfbfd')
2014-05-03 16:32:42 +00:00
prepare() {
2016-11-27 22:19:23 +00:00
cd u-boot-${pkgver}
2015-06-28 22:34:25 +00:00
git apply ../0001-arch-linux-arm-modifications.patch
2014-05-03 16:32:42 +00:00
}
build() {
2016-11-27 22:19:23 +00:00
cd u-boot-${pkgver}
unset CFLAGS CXXFLAGS CPPFLAGS
2014-05-03 16:32:42 +00:00
make distclean
make nitrogen6q_config
2016-11-27 22:19:23 +00:00
make EXTRAVERSION=-${pkgrel}
2014-05-03 16:32:42 +00:00
}
package() {
2016-11-27 22:19:23 +00:00
cd u-boot-${pkgver}
mkdir -p ${pkgdir}/boot
cp u-boot.imx ${pkgdir}/boot
2014-05-03 16:32:42 +00:00
2016-11-27 22:19:23 +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
2014-05-03 16:32:42 +00:00
}