aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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