diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-06-06 16:37:16 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-12 17:08:24 +0000 |
commit | 21aad5d3185cd9b8509fb3190650d5dd90d38483 (patch) | |
tree | aa697ca2c7f77b6a12ce1e7bb83ff35d8561c49d /main | |
parent | 86846fe12dbda3cd376806dbc8996c3890326e94 (diff) | |
download | aports-21aad5d3185cd9b8509fb3190650d5dd90d38483.tar.bz2 aports-21aad5d3185cd9b8509fb3190650d5dd90d38483.tar.xz |
main/u-boot: add pine64-lts support
Diffstat (limited to 'main')
-rw-r--r-- | main/u-boot/APKBUILD | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/main/u-boot/APKBUILD b/main/u-boot/APKBUILD index 2b9532094f..620e68f231 100644 --- a/main/u-boot/APKBUILD +++ b/main/u-boot/APKBUILD @@ -1,5 +1,5 @@ # Contributor: He Yangxuan <yangxuan8282@gmail.com> -# Contributor: +# Contributor: # Contributor: Timo Teras <timo.teras@iki.fi> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=u-boot @@ -10,10 +10,10 @@ url="http://www.denx.de/wiki/U-Boot/" arch="armhf armv7 aarch64" license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs ISC LGPL-2.0-only LGPL-2.1-only X11" -depends="" -depends_dev="" makedepends="$depends_dev bc dtc python2-dev swig bison flex openssl-dev" -install="" +if [ "$CARCH" = "aarch64" ]; then + makedepends="$makedepends arm-trusted-firmware-sun50i" +fi source="ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver//_/-}.tar.bz2 README.txt update-u-boot @@ -37,6 +37,7 @@ aarch64) board_configs=" odroid:odroid-c2 libretech:libretech-cc qemu:qemu_arm64 + pine64:pine64-lts ";; esac @@ -57,6 +58,13 @@ build() { local configs="${board_config#*:}" for board in ${configs//,/ }; do msg "Building u-boot for $board" + + case "$board" in + "pine64-lts") + export BL31="/usr/share/arm-trusted-firmware-sun50i/bl31.bin" + ;; + esac + export BUILD_DIR="$builddir"/build/$board mkdir -p "$BUILD_DIR" make O="$BUILD_DIR" ${board}_config || return 1 |