Skip to content

Commit

Permalink
build.sh: support uart boot (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Mar 1, 2024
1 parent 1743e38 commit 553a16a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
;;
Expand Down

0 comments on commit 553a16a

Please sign in to comment.