2016-04-22 01:55:03 +00:00
|
|
|
# U-Boot: Pine64
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=8
|
|
|
|
|
|
|
|
pkgname=uboot-pine64
|
2017-08-20 02:07:04 +00:00
|
|
|
pkgver=2017.07
|
2016-04-22 01:55:03 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="U-Boot for Pine64"
|
2017-08-20 02:07:04 +00:00
|
|
|
arch=('aarch64')
|
2016-04-22 01:55:03 +00:00
|
|
|
url='http://www.denx.de/wiki/U-Boot/WebHome'
|
|
|
|
license=('GPL')
|
|
|
|
backup=('boot/boot.txt' 'boot/boot.scr')
|
|
|
|
makedepends=('bc' 'dtc' 'git')
|
|
|
|
install=${pkgname}.install
|
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
|
2017-08-20 02:07:04 +00:00
|
|
|
'git+https://github.com/apritzel/arm-trusted-firmware.git#branch=allwinner'
|
|
|
|
'0001-ATF-set-fno-stack-protector.patch'
|
2016-04-22 01:55:03 +00:00
|
|
|
'boot.txt'
|
|
|
|
'mkscr')
|
2017-08-20 02:07:04 +00:00
|
|
|
md5sums=('b74741e7a9ad1cf9a5bfa87302b80f2b'
|
|
|
|
'SKIP'
|
|
|
|
'1d3b375fa978f3297d0fd3316f89e68a'
|
|
|
|
'c3fef77aee64903f806c4f4357e5a2ab'
|
2016-04-22 01:55:03 +00:00
|
|
|
'021623a04afd29ac3f368977140cfbfd')
|
|
|
|
|
|
|
|
prepare() {
|
2017-08-20 02:07:04 +00:00
|
|
|
cd arm-trusted-firmware
|
|
|
|
git apply ../0001-ATF-set-fno-stack-protector.patch
|
2016-04-22 01:55:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-08-20 02:07:04 +00:00
|
|
|
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
|
|
|
|
|
|
|
cd arm-trusted-firmware
|
2016-04-22 01:55:03 +00:00
|
|
|
|
2017-08-20 02:07:04 +00:00
|
|
|
make PLAT=sun50iw1p1 DEBUG=1 bl31
|
|
|
|
cp build/sun50iw1p1/debug/bl31.bin ../u-boot-${pkgver/rc/-rc}
|
2016-04-22 01:55:03 +00:00
|
|
|
|
2017-08-20 02:07:04 +00:00
|
|
|
cd ../u-boot-${pkgver/rc/-rc}
|
|
|
|
|
|
|
|
make distclean
|
2016-04-22 01:55:03 +00:00
|
|
|
make pine64_plus_defconfig
|
2017-08-20 02:07:04 +00:00
|
|
|
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
|
|
|
|
make -j1 EXTRAVERSION=-${pkgrel}
|
2016-04-22 01:55:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
|
2017-08-20 02:07:04 +00:00
|
|
|
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
|
|
|
cp ../boot.txt ../mkscr u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
2016-04-22 01:55:03 +00:00
|
|
|
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d "${pkgdir}"/boot/boot.txt "${pkgdir}"/boot/boot.scr
|
|
|
|
}
|