From 553a16af808ee1b0aca05a3f154bdc87da4151c4 Mon Sep 17 00:00:00 2001 From: Frank Wunderlich Date: Fri, 1 Mar 2024 19:19:11 +0100 Subject: [PATCH] build.sh: support uart boot (untested) --- build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 74761e428be..87fcefac7e8 100755 --- a/build.sh +++ b/build.sh @@ -41,6 +41,9 @@ else fi makeflags="PLAT=${PLAT} BOOT_DEVICE=$device $makeflags" +if [[ "$device" == "ram" ]];then + makeflags="$makeflags RAM_BOOT_UART_DL=1" +fi case $1 in #"importconfig") @@ -172,7 +175,11 @@ case $1 in ;; "rename") set -x - cp build/${PLAT}/release/bl2.img ${board}_${device}_bl2.img + if [[ "$device" == "ram" ]];then + cp build/${PLAT}/release/bl2.bin ${board}_${device}_bl2.bin + else + cp build/${PLAT}/release/bl2.img ${board}_${device}_bl2.img + fi cp build/${PLAT}/release/fip.bin ${board}_${device}_fip.bin set +x ;;