mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# U-Boot: Raspberry Pi
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=4
|
|
|
|
pkgname=uboot-raspberrypi
|
|
pkgver=2016.03
|
|
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')
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
|
'0001-arch-linux-arm-modifications.patch'
|
|
'boot.txt'
|
|
'mkscr')
|
|
md5sums=('973c1d896be751321cc3aafa564f64b2'
|
|
'2fc5fdd1fb48545336a2f534772d7477'
|
|
'3631f52fb2a0e940bbcc04ea80701d9a'
|
|
'021623a04afd29ac3f368977140cfbfd')
|
|
|
|
prepare() {
|
|
cd u-boot-${pkgver}
|
|
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
|
}
|
|
|
|
build() {
|
|
cd u-boot-${pkgver}
|
|
|
|
unset CFLAGS
|
|
unset CXXFLAGS
|
|
unset CPPFLAGS
|
|
|
|
make distclean
|
|
make rpi_2_config
|
|
make EXTRAVERSION=-${pkgrel}
|
|
}
|
|
|
|
package() {
|
|
cd u-boot-${pkgver}
|
|
|
|
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
|
|
}
|