From a8a0eac06b75625d1f178c50301229b849c3f992 Mon Sep 17 00:00:00 2001 From: CodeChenL <43897062+CodeChenL@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:03:43 +0800 Subject: [PATCH] fix: apply suggestions from code review Co-authored-by: ZHANG Yuntian Signed-off-by: CodeChenL <43897062+CodeChenL@users.noreply.github.com> --- lib/u-boot.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/u-boot.sh b/lib/u-boot.sh index bfa0724..5af2004 100644 --- a/lib/u-boot.sh +++ b/lib/u-boot.sh @@ -94,9 +94,7 @@ bsp_prepare() { echo "Unable to find prebuilt bl32. The resulting bootloader may not work." >&2 else echo "Using bl32 $(basename $rkbin_bl32)" - rm -f "$SCRIPT_DIR/.src/u-boot/tee.bin" - # for Rockchip u-boot - ln -s "$rkbin_bl32" "$SCRIPT_DIR/.src/u-boot/tee.bin" + ln -sf "$rkbin_bl32" "$SCRIPT_DIR/.src/u-boot/tee.bin" fi else rm -f "$SCRIPT_DIR/.src/u-boot/tee.bin"