2016-04-22 01:55:03 +00:00
|
|
|
# U-Boot: Pine64
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=8
|
|
|
|
|
|
|
|
pkgname=uboot-pine64
|
2018-04-03 00:31:29 +00:00
|
|
|
pkgver=2018.03
|
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')
|
2018-04-03 00:31:29 +00:00
|
|
|
makedepends=('bc' 'git' 'python' 'swig' 'dtc145')
|
2016-04-22 01:55:03 +00:00
|
|
|
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'
|
2018-04-03 00:31:29 +00:00
|
|
|
'0001-sunxi-disable-direct-MMC-environment.patch'
|
|
|
|
'0002-sunxi-revert-disabling-of-features.patch'
|
|
|
|
'0003-Set-board-name-for-Pine64.patch'
|
2017-08-20 02:07:04 +00:00
|
|
|
'0001-ATF-set-fno-stack-protector.patch'
|
2016-04-22 01:55:03 +00:00
|
|
|
'boot.txt'
|
|
|
|
'mkscr')
|
2018-04-03 00:31:29 +00:00
|
|
|
md5sums=('02922bdf0ee003fe25bfc32749ffdeab'
|
2017-08-20 02:07:04 +00:00
|
|
|
'SKIP'
|
2018-04-03 00:31:29 +00:00
|
|
|
'f7c8d23581c1f8b4343e39a05305552f'
|
|
|
|
'8452738859843d26e5763a4fc5797bda'
|
|
|
|
'e6f1ffcb18361c238e5127d84f9bc9f8'
|
2017-08-20 02:07:04 +00:00
|
|
|
'1d3b375fa978f3297d0fd3316f89e68a'
|
2018-04-03 00:31:29 +00:00
|
|
|
'b523aea0f8fda4edc6846b7e7294f76e'
|
2016-04-22 01:55:03 +00:00
|
|
|
'021623a04afd29ac3f368977140cfbfd')
|
|
|
|
|
|
|
|
prepare() {
|
2018-04-03 00:31:29 +00:00
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
git apply ../0001-sunxi-disable-direct-MMC-environment.patch
|
|
|
|
git apply ../0002-sunxi-revert-disabling-of-features.patch
|
|
|
|
git apply ../0003-Set-board-name-for-Pine64.patch
|
|
|
|
|
|
|
|
cd ../arm-trusted-firmware
|
2017-08-20 02:07:04 +00:00
|
|
|
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
|
2018-04-03 00:31:29 +00:00
|
|
|
make 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
|
|
|
|
}
|