PKGBUILDs/alarm/uboot-cubox-i/PKGBUILD

45 lines
1.1 KiB
Bash
Raw Normal View History

2017-02-11 01:18:35 +00:00
# U-Boot: Cubox-i
2015-11-05 19:23:16 +00:00
# Maintainer: Oleg Rakhmanov <oleg@archlinuxarm.org>
2017-02-11 01:18:35 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
2014-03-04 13:31:30 +00:00
buildarch=4
2017-02-11 01:18:35 +00:00
pkgname=uboot-cubox-i
pkgver=2017.01
pkgrel=1
pkgdesc="U-Boot for Cubox-i"
2014-03-04 13:31:30 +00:00
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
2017-02-11 01:18:35 +00:00
makedepends=('git' 'bc')
install=${pkgname}.install
backup=('boot/boot.txt' 'boot/boot.scr')
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
'boot.txt'
'mkscr')
md5sums=('ad2d82d5b4fa548b2b95bbc26c9bad79'
'9d86ff3271d329e1e0dbe3f1a14a7fc8'
'021623a04afd29ac3f368977140cfbfd')
2014-03-04 13:31:30 +00:00
build() {
2017-02-11 01:18:35 +00:00
cd u-boot-${pkgver}
unset LDFLAGS CFLAGS CXXFLAGS
2015-07-14 20:31:09 +00:00
make distclean
2017-02-11 01:18:35 +00:00
make mx6cuboxi_defconfig
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
make
2014-03-04 13:31:30 +00:00
}
package() {
2017-02-11 01:18:35 +00:00
cd u-boot-${pkgver}
2015-07-14 20:31:09 +00:00
2014-03-04 13:31:30 +00:00
mkdir -p "${pkgdir}"/boot
2017-02-11 01:18:35 +00:00
cp SPL u-boot.img "${pkgdir}"/boot
2014-03-04 13:31:30 +00:00
2017-02-11 01:18:35 +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
}