mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Add --no-buildroot option to installation script
This commit is contained in:
parent
77eb250ef6
commit
dc98f29ffa
@ -77,11 +77,17 @@ trap error ERR # run error handler on error
|
||||
STATUS="setup" # keep track of what part of the installation is running for error messages
|
||||
|
||||
# Check for clean flag
|
||||
if [ "$1" == "--clean" ]; then
|
||||
if [ "$1" == "--clean" ] || [ "$2" == "--clean" ]; then
|
||||
clean=true
|
||||
shift
|
||||
fi
|
||||
|
||||
# Check for clean flag
|
||||
if [ "$1" == "--no-buildroot" ] || [ "$2" == "--no-buildroot" ]; then
|
||||
no_buidroot=true
|
||||
shift
|
||||
fi
|
||||
|
||||
# Determine script directory to locate related scripts
|
||||
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
@ -391,6 +397,7 @@ fi
|
||||
# Buildroot and Linux testvectors
|
||||
# Buildroot is used to boot a minimal versio of Linux on Wally.
|
||||
# Testvectors are generated using QEMU.
|
||||
if [ ! "$no_buidroot" ]; then
|
||||
section_header "Installing Buildroot and Creating Linux testvectors"
|
||||
STATUS="buildroot"
|
||||
if [ -z "$LD_LIBRARY_PATH" ]; then
|
||||
@ -409,6 +416,9 @@ elif [ ! -e "$RISCV"/linux-testvectors ]; then
|
||||
else
|
||||
echo -e "${OK_COLOR}Buildroot and Linux testvectors already exist.${ENDC}"
|
||||
fi
|
||||
else
|
||||
echo -e "${OK_COLOR}Skipping Buildroot and Linux testvectors.${ENDC}"
|
||||
fi
|
||||
|
||||
|
||||
# Download site-setup scripts
|
||||
|
Loading…
Reference in New Issue
Block a user