mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Meta: Don't override SERENITY_KVM_SUPPORT if it is already set
I've seen how @awesomekling changes the script to disable KVM, so that's a useful thing to have. An example how to use it: SERENITY_KVM_SUPPORT='0' ./Meta/serenity.sh run x86_64 My first commit btw :^)
This commit is contained in:
parent
1a27220bca
commit
dfb994f62d
Notes:
sideshowbarker
2024-07-17 22:10:35 +09:00
Author: https://github.com/kelvium 🔰 Commit: https://github.com/SerenityOS/serenity/commit/dfb994f62da Pull-request: https://github.com/SerenityOS/serenity/pull/11416 Reviewed-by: https://github.com/BertalanD ✅ Reviewed-by: https://github.com/alimpfard
1 changed files with 8 additions and 2 deletions
10
Meta/run.sh
10
Meta/run.sh
|
@ -17,8 +17,14 @@ SCRIPT_DIR="$(dirname "${0}")"
|
||||||
#SERENITY_PACKET_LOGGING_ARG="-object filter-dump,id=hue,netdev=breh,file=e1000.pcap"
|
#SERENITY_PACKET_LOGGING_ARG="-object filter-dump,id=hue,netdev=breh,file=e1000.pcap"
|
||||||
|
|
||||||
# FIXME: Enable for SERENITY_ARCH=aarch64 if on an aarch64 host?
|
# FIXME: Enable for SERENITY_ARCH=aarch64 if on an aarch64 host?
|
||||||
KVM_SUPPORT="0"
|
|
||||||
[ -e /dev/kvm ] && [ -r /dev/kvm ] && [ -w /dev/kvm ] && [ "$SERENITY_ARCH" != "aarch64" ] && KVM_SUPPORT="1"
|
# Check if SERENITY_KVM_SUPPORT is unset
|
||||||
|
if [ -z ${SERENITY_KVM_SUPPORT+x} ]; then
|
||||||
|
KVM_SUPPORT="0"
|
||||||
|
[ -e /dev/kvm ] && [ -r /dev/kvm ] && [ -w /dev/kvm ] && [ "$SERENITY_ARCH" != "aarch64" ] && KVM_SUPPORT="1"
|
||||||
|
else
|
||||||
|
KVM_SUPPORT="$SERENITY_KVM_SUPPORT"
|
||||||
|
fi
|
||||||
|
|
||||||
[ -z "$SERENITY_BOCHS_BIN" ] && SERENITY_BOCHS_BIN="bochs"
|
[ -z "$SERENITY_BOCHS_BIN" ] && SERENITY_BOCHS_BIN="bochs"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue