mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Added check for the odd Ubuntu 22.04 python2/3 issue.
This commit is contained in:
parent
b73bf728a5
commit
528f1a0940
@ -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
|
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.
|
# needed for Ubuntu 22.04, gcc cross compiler expects python not python2 or python3.
|
||||||
|
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
|
ln -sf /usr/bin/python3 /usr/bin/python
|
||||||
|
fi
|
||||||
|
|
||||||
# gcc cross-compiler
|
# gcc cross-compiler
|
||||||
cd $RISCV
|
cd $RISCV
|
||||||
|
Loading…
Reference in New Issue
Block a user