mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# U-Boot: Pandaboard and Pandaboard ES
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=4
|
|
|
|
pkgname=uboot-pandaboard
|
|
pkgver=2016.11
|
|
pkgrel=1
|
|
pkgdesc="U-Boot for Pandaboard and Pandaboard ES"
|
|
arch=('armv7h')
|
|
url="http://git.denx.de/u-boot.git/"
|
|
makedepends=('bc' 'dtc' 'git')
|
|
license=('GPL')
|
|
install=${pkgname}.install
|
|
backup=('boot/boot.txt' 'boot/boot.scr')
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
|
|
'0001-arch-linux-arm-modifications.patch'
|
|
'boot.txt'
|
|
'mkscr')
|
|
md5sums=('ca1f6e019d08aff8d0ca1beb2e66737d'
|
|
'97e6355ce22648559fdcf61a99a8a5cf'
|
|
'4908cf55626f1109276f14111b11117d'
|
|
'021623a04afd29ac3f368977140cfbfd')
|
|
|
|
prepare() {
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
|
}
|
|
|
|
build() {
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
unset LDFLAGS
|
|
|
|
make distclean
|
|
make omap4_panda_defconfig
|
|
make EXTRAVERSION=-${pkgrel}
|
|
}
|
|
|
|
package() {
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
cp MLO u-boot.img "${pkgdir}"/boot
|
|
|
|
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
|
|
}
|