mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 08:50:37 +00:00
Meta: Make 'run.sh qgrub' work via SERENITY_RUN
It is possible to set the run.sh mode via the SERENITY_RUN environment variable, but the SERENITY_DISK_IMAGE="grub_disk_image" override for qgrub mode was only checking $1. This makes qgrub mode work via 'ninja run' without explicitly setting SERENITY_DISK_IMAGE: SERENITY_RUN=qgrub ninja run
This commit is contained in:
parent
b807e725e0
commit
a013a38e24
Notes:
sideshowbarker
2024-07-18 21:40:18 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/a013a38e24f Pull-request: https://github.com/SerenityOS/serenity/pull/5668
1 changed files with 2 additions and 3 deletions
|
@ -25,6 +25,7 @@ if [ "$(uname)" = "Darwin" ] && [ "$(uname -m)" = "x86_64" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
SERENITY_RUN="${SERENITY_RUN:-$1}"
|
||||
|
||||
[ -z "$SERENITY_QEMU_BIN" ] && SERENITY_QEMU_BIN="qemu-system-i386"
|
||||
|
||||
|
@ -35,7 +36,7 @@ fi
|
|||
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max"
|
||||
|
||||
[ -z "$SERENITY_DISK_IMAGE" ] && {
|
||||
if [ "$1" = qgrub ]; then
|
||||
if [ "$SERENITY_RUN" = qgrub ]; then
|
||||
SERENITY_DISK_IMAGE="grub_disk_image"
|
||||
else
|
||||
SERENITY_DISK_IMAGE="_disk_image"
|
||||
|
@ -79,8 +80,6 @@ export SDL_VIDEO_X11_DGAMOUSE=0
|
|||
: "${SERENITY_BUILD:=.}"
|
||||
cd -P -- "$SERENITY_BUILD" || die "Could not cd to \"$SERENITY_BUILD\""
|
||||
|
||||
SERENITY_RUN="${SERENITY_RUN:-$1}"
|
||||
|
||||
if [ "$SERENITY_RUN" = "b" ]; then
|
||||
# Meta/run.sh b: bochs
|
||||
[ -z "$SERENITY_BOCHSRC" ] && {
|
||||
|
|
Loading…
Reference in a new issue