2013-07-19 19:54:57 +00:00
|
|
|
# U-Boot: Pandaboard and Pandaboard ES
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
2013-07-19 20:14:45 +00:00
|
|
|
buildarch=4
|
|
|
|
|
2013-07-19 19:54:57 +00:00
|
|
|
pkgname=uboot-pandaboard
|
2017-09-03 16:11:20 +00:00
|
|
|
pkgver=2017.07
|
2016-01-18 23:26:53 +00:00
|
|
|
pkgrel=1
|
2013-07-19 19:54:57 +00:00
|
|
|
pkgdesc="U-Boot for Pandaboard and Pandaboard ES"
|
|
|
|
arch=('armv7h')
|
|
|
|
url="http://git.denx.de/u-boot.git/"
|
2016-03-18 00:52:03 +00:00
|
|
|
makedepends=('bc' 'dtc' 'git')
|
2013-07-19 19:54:57 +00:00
|
|
|
license=('GPL')
|
2014-11-23 07:04:09 +00:00
|
|
|
install=${pkgname}.install
|
2016-03-18 00:52:03 +00:00
|
|
|
backup=('boot/boot.txt' 'boot/boot.scr')
|
2016-07-03 03:41:43 +00:00
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
|
2014-11-23 07:04:09 +00:00
|
|
|
'0001-arch-linux-arm-modifications.patch'
|
2016-03-18 00:52:03 +00:00
|
|
|
'boot.txt'
|
|
|
|
'mkscr')
|
2017-09-03 16:11:20 +00:00
|
|
|
md5sums=('b74741e7a9ad1cf9a5bfa87302b80f2b'
|
|
|
|
'ccd9a659e470aeeb8325dcbdafa9a847'
|
2016-03-18 00:52:03 +00:00
|
|
|
'4908cf55626f1109276f14111b11117d'
|
|
|
|
'021623a04afd29ac3f368977140cfbfd')
|
2013-07-19 19:54:57 +00:00
|
|
|
|
|
|
|
prepare() {
|
2016-07-03 03:41:43 +00:00
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
2014-01-08 03:05:06 +00:00
|
|
|
|
2014-11-23 07:04:09 +00:00
|
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
2013-07-19 19:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2016-07-03 03:41:43 +00:00
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
2014-01-08 03:05:06 +00:00
|
|
|
|
|
|
|
unset LDFLAGS
|
|
|
|
|
2013-07-19 19:54:57 +00:00
|
|
|
make distclean
|
2016-07-03 03:41:43 +00:00
|
|
|
make omap4_panda_defconfig
|
2017-09-03 16:11:20 +00:00
|
|
|
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
|
2016-03-18 00:52:03 +00:00
|
|
|
make EXTRAVERSION=-${pkgrel}
|
2013-07-19 19:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-07-03 03:41:43 +00:00
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
2014-05-17 20:00:54 +00:00
|
|
|
|
2013-07-19 19:54:57 +00:00
|
|
|
mkdir -p "${pkgdir}"/boot
|
2016-03-18 00:52:03 +00:00
|
|
|
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
|
2013-07-19 19:54:57 +00:00
|
|
|
}
|