feat: Make CPU model configurable (#7)

This commit is contained in:
Kroese 2024-02-03 12:10:32 +01:00 committed by GitHub
parent 1ae241040e
commit f011637e68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@ set -Eeuo pipefail
: "${KVM:="Y"}" : "${KVM:="Y"}"
: "${CPU_FLAGS:=""}" : "${CPU_FLAGS:=""}"
: "${CPU_MODEL:="host"}" : "${CPU_MODEL:="host"}"
: "${MODEL:="cortex-a53"}"
[[ "$ARCH" != "arm"* ]] && KVM="N" [[ "$ARCH" != "arm"* ]] && KVM="N"
@ -56,7 +57,7 @@ else
if [[ "$ARCH" == "arm"* ]]; then if [[ "$ARCH" == "arm"* ]]; then
CPU_MODEL="max" CPU_MODEL="max"
else else
CPU_MODEL="cortex-a53" CPU_MODEL="$MODEL"
fi fi
fi fi