Files
rt-thread/bsp/k230/build.sh
Chen Wang e9f6992fa1 bsp: k230: add flashsd script
Add a script to call rttpkgtool's sdcard.sh.
Ths script encapsulate checking and downloading
of rttpkgtool and call ./script/sdcard.sh.

It also print new message so user need not
learn how to use sdcard.sh.

Update README.md.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-20 11:23:40 +08:00

18 lines
354 B
Bash
Executable File

#!/bin/bash
source ./utils.sh
BSP_PATH=$(realpath $(dirname $0))
echo "BSP_PATH: $BSP_PATH"
download_rttpkgtool $BSP_PATH
result=$?
if [ $result -ne 0 ]; then
echo "ERROR: rttpkgtool is unavailable! Please check your network connection!"
exit 1
fi
pushd $BSP_PATH/rttpkgtool > /dev/null
DPT_PATH_KERNEL=$BSP_PATH ./script/mkpkg.sh
popd > /dev/null