Added check for the odd Ubuntu 22.04 python2/3 issue.

This commit is contained in:
Ross Thompson 2023-01-21 21:29:37 -06:00
parent f82e7474d9
commit 365a6e9f7a

View File

@ -16,7 +16,11 @@ apt update
apt install -y git gawk make texinfo bison flex build-essential python3 libz-dev libexpat-dev autoconf device-tree-compiler ninja-build libpixman-1-dev build-essential ncurses-base ncurses-bin libncurses5-dev dialog curl wget ftp libgmp-dev
# needed for Ubuntu 22.04, gcc cross compiler expects python not python2 or python3.
ln -sf /usr/bin/python3 /usr/bin/python
if ! command -v python &> /dev/null
then
echo "WARNING: python3 was installed as python3 rather than python. Creating symlink."
ln -sf /usr/bin/python3 /usr/bin/python
fi
# gcc cross-compiler
cd $RISCV