diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-02-24 15:03:56 +0100 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-02-24 15:03:56 +0100 |
commit | 4fcd3ddda73f2e531372d34b479e8e5c84acf68e (patch) | |
tree | 32d1f1146e06c158510188cd4416afb5ec37b41e /PKGBUILD | |
parent | a074f492e4e5d5e509a6d56a54e998bf1910f480 (diff) | |
download | uboot-pinebook-4fcd3ddda73f2e531372d34b479e8e5c84acf68e.tar.gz uboot-pinebook-4fcd3ddda73f2e531372d34b479e8e5c84acf68e.tar.bz2 uboot-pinebook-4fcd3ddda73f2e531372d34b479e8e5c84acf68e.zip |
Upgraded to 2021.01 and incorporated crust.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 30 insertions, 24 deletions
@@ -1,45 +1,51 @@ -# U-Boot: Pinebook, based on Pine64 PKGBUILD -# Maintainer: Dan Johansen <strit@manjaro.org> +# Maintainer: Jaron Kent-Dobias <jaron@kent-dobias.com> +# Contributor: Dan Johansen <strit@manjaro.org> # Contributor: Kevin Mihelich <kevin@archlinuxarm.org> +_tfaver=2.4 +_crustver=0.3 + pkgname=uboot-pinebook -pkgver=2020.10 -pkgrel=1 -_tfaver=2.3 +pkgver=2021.01 +pkgrel=3 pkgdesc="U-Boot for Pinebook" -arch=('aarch64') +arch=(aarch64) url='http://www.denx.de/wiki/U-Boot/WebHome' license=('GPL') -makedepends=('bc' 'git' 'python' 'swig' 'dtc') +makedepends=('bc' 'git' 'python' 'swig' 'dtc' 'or1k-elf-gcc' 'or1k-elf-binutils' 'aarch64-linux-gnu-gcc' 'aarch64-linux-gnu-binutils') provides=('uboot') conflicts=('uboot') install=${pkgname}.install -source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2" - "https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot/trusted-firmware-a-$_tfaver.tar.gz") -md5sums=('14656f08aa73a8dbbde2424fe78bbe3b' - '628a32a3c3b3f0c567d1ea6ee5582807') +source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2" + "https://github.com/ARM-software/arm-trusted-firmware/archive/v${_tfaver}.tar.gz" + "https://github.com/crust-firmware/crust/archive/v${_crustver}.tar.gz" +) +sha256sums=('b407e1510a74e863b8b5cb42a24625344f0e0c2fc7582d8c866bd899367d0454' + '4bfda9fdbe5022f2e88ad3344165f7d38a8ae4a0e2d91d44d9a1603425cc642d' + 'cf02f227b909f40bcfc33a94088fce12356dab41bc7459c22b7b333b305d4c72') + +export ARCH=arm64 +export CROSS_COMPILE=aarch64-linux-gnu- build() { unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS - cd trusted-firmware-a-$_tfaver - - make PLAT=sun50i_a64 DEBUG=1 bl31 - cp build/sun50i_a64/debug/bl31.bin ../u-boot-${pkgver/rc/-rc} + cd "$srcdir/arm-trusted-firmware-$_tfaver" + make PLAT=sun50i_a64 bl31 + export BL31="$srcdir/arm-trusted-firmware-$_tfaver/build/sun50i_a64/release/bl31.bin" - cd ../u-boot-${pkgver/rc/-rc} + cd "$srcdir/crust-$_crustver" + CROSS_COMPILE=or1k-elf- make pinebook_defconfig + CROSS_COMPILE=or1k-elf- make scp + export SCP="$srcdir/crust-$_crustver/build/scp/scp.bin" + cd "$srcdir/u-boot-$pkgver" make distclean make pinebook_defconfig - echo 'CONFIG_IDENT_STRING=" Manjaro ARM"' >> .config - make EXTRAVERSION=-${pkgrel} - cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl-pinebook.bin + echo 'CONFIG_IDENT_STRING=" Archlinux"' >> .config + make EXTRAVERSION=-$pkgrel } package() { - cd u-boot-${pkgver/rc/-rc} - - mkdir -p "${pkgdir}"/boot/extlinux - - cp u-boot-sunxi-with-spl-pinebook.bin "${pkgdir}"/boot + install -Dm644 u-boot-$pkgver/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/u-boot-sunxi-with-spl-pinebook.bin" } |