aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-06-06 16:37:16 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-12 15:51:01 +0000
commit526ab86df011c137e05f80ec31f8aaec49aad405 (patch)
treebabcda7c41bec2103c817ac1665d34f397bb97e1
parent16912bb850df8882e782ec779572803e19eee4a7 (diff)
downloadaports-526ab86df011c137e05f80ec31f8aaec49aad405.tar.bz2
aports-526ab86df011c137e05f80ec31f8aaec49aad405.tar.xz
main/u-boot: add pine64-lts support
-rw-r--r--main/u-boot/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/main/u-boot/APKBUILD b/main/u-boot/APKBUILD
index 2b9532094f..3f72ed47de 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