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"