-
Notifications
You must be signed in to change notification settings - Fork 50
/
eessi_defaults
27 lines (26 loc) · 1.2 KB
/
eessi_defaults
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# define default values for some EESSI_* environment variables
#
# This file is part of the EESSI software layer,
# see https://github.com/EESSI/software-layer
#
# author: Thomas Roeblitz (@trz42)
#
# license: GPLv2
#
# use different defaults for RISC-V, as we want to redirect to the riscv.eessi.io repo
if [[ $(uname -m) == "riscv64" ]]; then
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/riscv.eessi.io}"
export EESSI_VERSION="${EESSI_VERSION_OVERRIDE:=20240402}"
if [[ -z ${EESSI_SILENT+x} ]]; then
echo "RISC-V architecture detected, but there is no RISC-V support yet in the production repository."
echo "Automatically switching to version ${EESSI_VERSION} of the RISC-V development repository ${EESSI_CVMFS_REPO}."
echo "For more details about this repository, see https://www.eessi.io/docs/repositories/riscv.eessi.io/."
echo ""
fi
else
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/software.eessi.io}"
export EESSI_VERSION="${EESSI_VERSION_OVERRIDE:=2023.06}"
fi
# use archdetect by default, unless otherwise specified
export EESSI_USE_ARCHDETECT="${EESSI_USE_ARCHDETECT:=1}"
export EESSI_USE_ARCHSPEC="${EESSI_USE_ARCHSPEC:=0}"