mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 02:05:21 +00:00
Add support for Debian 11 to installation script
This commit is contained in:
parent
4f5db12b2c
commit
6e680ae561
@ -91,8 +91,8 @@ elif [[ "$ID" == debian || "$ID_LIKE" == *debian* ]]; then
|
|||||||
"is $PRETTY_NAME. The regular Debian install will be attempted, but there may be issues."
|
"is $PRETTY_NAME. The regular Debian install will be attempted, but there may be issues."
|
||||||
fi
|
fi
|
||||||
export DEBIAN_VERSION="$VERSION_ID"
|
export DEBIAN_VERSION="$VERSION_ID"
|
||||||
if (( DEBIAN_VERSION < 12 )); then
|
if (( DEBIAN_VERSION < 11 )); then
|
||||||
printf "${FAIL_COLOR}%s\n${ENDC}" "The Wally install script has only been tested with Debian version 12. You have version $VERSION."
|
printf "${FAIL_COLOR}%s\n${ENDC}" "The Wally install script has only been tested with Debian versions 11 and 12. You have version $VERSION."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -71,8 +71,12 @@ elif [[ "$FAMILY" == ubuntu || "$FAMILY" == debian ]]; then
|
|||||||
OTHER_PACKAGES+=(gcc-10 g++-10 cpp-10) # Newer version of gcc needed for Verilator
|
OTHER_PACKAGES+=(gcc-10 g++-10 cpp-10) # Newer version of gcc needed for Verilator
|
||||||
elif (( DEBIAN_VERSION >= 12 )); then
|
elif (( DEBIAN_VERSION >= 12 )); then
|
||||||
PYTHON_VERSION=python3.11
|
PYTHON_VERSION=python3.11
|
||||||
if (( UBUNTU_VERSION != 20 )); then
|
elif (( DEBIAN_VERSION >= 11 )); then
|
||||||
VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, binary will be downloaded instead
|
PYTHON_VERSION=python3.9
|
||||||
|
fi
|
||||||
|
# Mold not available in older distros for Verilator, will download binary instead
|
||||||
|
if (( UBUNTU_VERSION != 20 && DEBIAN_VERSION != 11 )); then
|
||||||
|
VERILATOR_PACKAGES+=(mold)
|
||||||
fi
|
fi
|
||||||
PACKAGE_MANAGER="DEBIAN_FRONTEND=noninteractive apt-get"
|
PACKAGE_MANAGER="DEBIAN_FRONTEND=noninteractive apt-get"
|
||||||
UPDATE_COMMAND="sudo $PACKAGE_MANAGER update -y && sudo $PACKAGE_MANAGER upgrade -y --with-new-pkgs"
|
UPDATE_COMMAND="sudo $PACKAGE_MANAGER update -y && sudo $PACKAGE_MANAGER upgrade -y --with-new-pkgs"
|
||||||
|
@ -264,7 +264,7 @@ if (( RHEL_VERSION == 8 )); then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Mold needed for Verilator
|
# Mold needed for Verilator
|
||||||
if (( UBUNTU_VERSION == 20 )); then
|
if (( UBUNTU_VERSION == 20 || DEBIAN_VERSION == 11 )); then
|
||||||
STATUS="mold"
|
STATUS="mold"
|
||||||
if [ ! -e "$RISCV"/bin/mold ]; then
|
if [ ! -e "$RISCV"/bin/mold ]; then
|
||||||
section_header "Installing mold"
|
section_header "Installing mold"
|
||||||
|
Loading…
Reference in New Issue
Block a user