PKGBUILDs/alarm/uboot-raspberrypi/PKGBUILD

53 lines
1.2 KiB
Bash
Raw Normal View History

2016-02-21 00:12:01 +00:00
# U-Boot: Raspberry Pi
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=uboot-raspberrypi
2016-03-15 00:55:36 +00:00
pkgver=2016.03
2016-02-21 00:12:01 +00:00
pkgrel=1
pkgdesc="U-Boot for Raspberry Pi"
arch=('armv7h')
url='http://www.denx.de/wiki/U-Boot/WebHome'
license=('GPL')
backup=('boot/boot.txt' 'boot/boot.scr')
makedepends=('bc' 'dtc' 'git')
conflicts=('linux-raspberrypi')
2016-03-15 00:55:36 +00:00
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
2016-02-21 00:12:01 +00:00
'0001-arch-linux-arm-modifications.patch'
'boot.txt'
'mkscr')
2016-03-15 00:55:36 +00:00
md5sums=('973c1d896be751321cc3aafa564f64b2'
2016-02-21 00:12:01 +00:00
'2fc5fdd1fb48545336a2f534772d7477'
'3631f52fb2a0e940bbcc04ea80701d9a'
'021623a04afd29ac3f368977140cfbfd')
prepare() {
2016-03-15 00:55:36 +00:00
cd u-boot-${pkgver}
2016-02-21 00:12:01 +00:00
git apply ../0001-arch-linux-arm-modifications.patch
}
build() {
2016-03-15 00:55:36 +00:00
cd u-boot-${pkgver}
2016-02-21 00:12:01 +00:00
unset CFLAGS
unset CXXFLAGS
unset CPPFLAGS
make distclean
make rpi_2_config
make EXTRAVERSION=-${pkgrel}
}
package() {
2016-03-15 00:55:36 +00:00
cd u-boot-${pkgver}
2016-02-21 00:12:01 +00:00
mkdir -p "${pkgdir}"/boot
cp u-boot.bin ${pkgdir}/boot/kernel7.img
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
cp ../{boot.txt,mkscr} "${pkgdir}"/boot
}