mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Add support for debian 12 to install script
This commit is contained in:
parent
4ff7289803
commit
f11799385e
@ -84,6 +84,17 @@ elif [[ "$ID" == ubuntu || "$ID_LIKE" == *ubuntu* ]]; then
|
|||||||
printf "${FAIL_COLOR}%s\n${ENDC}" "The Wally install script has only been tested with Ubuntu versions 20.04 LTS, 22.04 LTS, and 24.04 LTS. You have version $VERSION."
|
printf "${FAIL_COLOR}%s\n${ENDC}" "The Wally install script has only been tested with Ubuntu versions 20.04 LTS, 22.04 LTS, and 24.04 LTS. You have version $VERSION."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
elif [[ "$ID" == debian || "$ID_LIKE" == *debian* ]]; then
|
||||||
|
export FAMILY=debian
|
||||||
|
if [ "$ID" != debian ]; then
|
||||||
|
printf "${WARNING_COLOR}%s\n${ENDC}" "For Debian family distros, the Wally install script has only been tested on standard Debian (and Ubuntu). Your distro " \
|
||||||
|
"is $PRETTY_NAME. The regular Debian install will be attempted, but there may be issues."
|
||||||
|
fi
|
||||||
|
export DEBIAN_VERSION="$VERSION_ID"
|
||||||
|
if (( DEBIAN_VERSION < 12 )); then
|
||||||
|
printf "${FAIL_COLOR}%s\n${ENDC}" "The Wally install script has only been tested with Debian version 12. You have version $VERSION."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
printf "${FAIL_COLOR}%s%s%s\n${ENDC}" "The Wally install script is currently only compatible with Ubuntu and Red Hat family " \
|
printf "${FAIL_COLOR}%s%s%s\n${ENDC}" "The Wally install script is currently only compatible with Ubuntu and Red Hat family " \
|
||||||
"(RHEL, Rocky Linux, or AlmaLinux) distros. Your detected distro is $PRETTY_NAME. You may try manually running the " \
|
"(RHEL, Rocky Linux, or AlmaLinux) distros. Your detected distro is $PRETTY_NAME. You may try manually running the " \
|
||||||
|
@ -61,7 +61,7 @@ if [ "$FAMILY" == rhel ]; then
|
|||||||
fi
|
fi
|
||||||
# A newer version of gcc is required for qemu
|
# A newer version of gcc is required for qemu
|
||||||
OTHER_PACKAGES=(gcc-toolset-13)
|
OTHER_PACKAGES=(gcc-toolset-13)
|
||||||
elif [ "$FAMILY" == ubuntu ]; then
|
elif [[ "$FAMILY" == ubuntu || "$FAMILY" == debian ]]; then
|
||||||
if (( UBUNTU_VERSION >= 24 )); then
|
if (( UBUNTU_VERSION >= 24 )); then
|
||||||
PYTHON_VERSION=python3.12
|
PYTHON_VERSION=python3.12
|
||||||
VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, nice for Verilator
|
VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, nice for Verilator
|
||||||
@ -71,11 +71,14 @@ elif [ "$FAMILY" == ubuntu ]; then
|
|||||||
elif (( UBUNTU_VERSION >= 20 )); then
|
elif (( UBUNTU_VERSION >= 20 )); then
|
||||||
PYTHON_VERSION=python3.9
|
PYTHON_VERSION=python3.9
|
||||||
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
|
||||||
|
PYTHON_VERSION=python3.11
|
||||||
|
VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, nice for Verilator
|
||||||
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"
|
||||||
GENERAL_PACKAGES+=(rsync git make cmake "$PYTHON_VERSION" python3-pip "$PYTHON_VERSION"-venv curl wget tar pkg-config dialog mutt ssmtp)
|
GENERAL_PACKAGES+=(rsync git make cmake "$PYTHON_VERSION" python3-pip "$PYTHON_VERSION"-venv curl wget tar pkg-config dialog mutt ssmtp)
|
||||||
GNU_PACKAGES+=(autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat1-dev ninja-build libglib2.0-dev libslirp-dev)
|
GNU_PACKAGES+=(autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat1-dev ninja-build libglib2.0-dev libslirp-dev)
|
||||||
QEMU_PACKAGES+=(libfdt-dev libpixman-1-dev)
|
QEMU_PACKAGES+=(libfdt-dev libpixman-1-dev)
|
||||||
SPIKE_PACKAGES+=(device-tree-compiler libboost-regex-dev libboost-system-dev)
|
SPIKE_PACKAGES+=(device-tree-compiler libboost-regex-dev libboost-system-dev)
|
||||||
VERILATOR_PACKAGES+=(help2man perl g++ clang ccache libunwind-dev libgoogle-perftools-dev numactl perl-doc libfl2 libfl-dev zlib1g)
|
VERILATOR_PACKAGES+=(help2man perl g++ clang ccache libunwind-dev libgoogle-perftools-dev numactl perl-doc libfl2 libfl-dev zlib1g)
|
||||||
|
Loading…
Reference in New Issue
Block a user