PKGBUILDs/alarm/uboot-usbarmory/PKGBUILD

52 lines
1.2 KiB
Bash
Raw Normal View History

# U-Boot: Inverse Path USB armory
2015-06-27 22:27:35 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
2015-10-29 03:54:10 +00:00
# Contributor: Jason Plum <jplum@archlinuxarm.org>
buildarch=4
pkgname=uboot-usbarmory
2016-11-19 20:01:38 +00:00
pkgver=2016.11
2015-06-27 22:27:35 +00:00
pkgrel=1
pkgdesc="U-Boot for USB armory"
arch=('armv7h')
2015-06-27 22:27:35 +00:00
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('git' 'bc')
2015-06-27 22:27:35 +00:00
install=${pkgname}.install
2016-11-19 20:01:38 +00:00
backup=('boot/boot.txt' 'boot/boot.scr')
2015-06-27 22:27:35 +00:00
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
'0001-arch-linux-arm-modifications.patch'
'boot.txt'
'mkscr')
2016-11-19 20:01:38 +00:00
md5sums=('ca1f6e019d08aff8d0ca1beb2e66737d'
2016-10-22 18:25:42 +00:00
'99bdb7f9887216634e688888d878efcb'
'45535e1c506ce5083bb916492b6d820f'
2015-06-27 22:27:35 +00:00
'021623a04afd29ac3f368977140cfbfd')
prepare() {
cd u-boot-${pkgver}
2015-06-27 22:27:35 +00:00
git apply ../0001-arch-linux-arm-modifications.patch
}
build() {
cd u-boot-${pkgver}
2015-06-27 22:27:35 +00:00
unset CFLAGS CXXFLAGS LDFLAGS
make distclean
make usbarmory_config
make
}
package() {
cd u-boot-${pkgver}
2015-06-27 22:27:35 +00:00
install -d "${pkgdir}"/boot
install -Dm644 u-boot.imx "${pkgdir}"/boot
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
}