Add Python detection to the compilation script. (#12)
* add python check * check python3
This commit is contained in:
4
build.sh
4
build.sh
@@ -12,6 +12,10 @@ if [ -z "$SOC" ] || [ -z "$BOARD" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if Python is installed on the system
|
||||
command -v python3
|
||||
[ "$?" != "0" ] && { echo "Error: Python is not installed on this system."; exit 0; }
|
||||
|
||||
echo "Trying cross compiler..."
|
||||
command -v ${TOOLCHAIN}gcc
|
||||
[ "$?" != "0" ] && { echo ${TOOLCHAIN}gcc not found!; exit 0; }
|
||||
|
||||
Reference in New Issue
Block a user