diff --git a/scripts/coreboot-sdk.sh b/scripts/coreboot-sdk.sh index 4dbed5ee..06c86e1e 100755 --- a/scripts/coreboot-sdk.sh +++ b/scripts/coreboot-sdk.sh @@ -39,6 +39,20 @@ elif [ "$ID" = "fedora" ] || [[ "$ID_LIKE" =~ "fedora" ]]; then tar \ xz \ zlib-devel +elif [[ "$ID" =~ "opensuse" ]] || [[ "ID_LIKE" =~ "opensuse" ]]; then + sudo zypper in -y \ + bzip2 \ + ca-certificates \ + flex \ + gcc \ + gcc-c++ \ + gcc-ada \ + make \ + mozilla-nss-devel \ + patch \ + tar \ + xz \ + zlib-devel elif [ "$ID" = "ubuntu" ] || [[ "$ID_LIKE" =~ "debian" ]]; then sudo apt-get --quiet update sudo apt-get --quiet install --no-install-recommends --assume-yes \ diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index e1b3f081..7860fbe5 100755 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -53,6 +53,27 @@ elif [[ "${ID}" =~ "fedora" ]] || [[ "${ID_LIKE}" =~ "fedora" ]]; then python3 \ systemd-devel \ zlib-devel +elif [[ "${ID}" =~ "opensuse" ]] || [[ "${ID_LIKE}" =~ "opensuse" ]]; then + sudo zypper in -t pattern devel_C_C++ + sudo zypper in \ + -y \ + ccache \ + cmake \ + curl \ + dosfstools \ + flashrom \ + git-lfs \ + libopenssl-devel \ + libuuid-devel \ + mtools \ + ncurses-devel \ + parted \ + patch \ + python3 \ + systemd-devel \ + zlib-devel + # There is no python-unversioned package for openSUSE, so we have to do this + update-alternatives --install /usr/bin/python python /usr/bin/python3 1 elif [[ "${ID}" =~ "arch" ]] || [[ "${ID_LIKE}" =~ "arch" ]]; then sudo pacman -S \ --noconfirm \ diff --git a/scripts/install-rust.sh b/scripts/install-rust.sh index 69e49fee..f1934052 100755 --- a/scripts/install-rust.sh +++ b/scripts/install-rust.sh @@ -12,7 +12,7 @@ RUSTUP_NEW_INSTALL=0 # NOTE: rustup is used to allow multiple toolchain installations. if command -v rustup >/dev/null 2>&1; then - rustup self update + rustup self update else RUSTUP_NEW_INSTALL=1 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \