Add Python detection to the compilation script. (#12)

* add python check

* check python3
This commit is contained in:
codercai
2023-08-18 22:00:32 +08:00
committed by GitHub
parent 7df1ca999b
commit acbd5d6638

View File

@@ -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; }