mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: Run 64-bit kernels with qemu-system-x86_64
This commit is contained in:
parent
5eb65286b6
commit
1979c7d185
Notes:
sideshowbarker
2024-07-18 11:33:28 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/1979c7d185c Pull-request: https://github.com/SerenityOS/serenity/pull/8240
2 changed files with 8 additions and 2 deletions
|
@ -40,7 +40,7 @@ option(ENABLE_KERNEL_LTO "Build the kernel with link-time optimization" OFF)
|
||||||
include(Meta/CMake/wasm_spec_tests.cmake)
|
include(Meta/CMake/wasm_spec_tests.cmake)
|
||||||
|
|
||||||
add_custom_target(run
|
add_custom_target(run
|
||||||
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh
|
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ARCH=${SERENITY_ARCH}" ${CMAKE_SOURCE_DIR}/Meta/run.sh
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,13 @@ fi
|
||||||
|
|
||||||
SERENITY_RUN="${SERENITY_RUN:-$1}"
|
SERENITY_RUN="${SERENITY_RUN:-$1}"
|
||||||
|
|
||||||
[ -z "$SERENITY_QEMU_BIN" ] && SERENITY_QEMU_BIN="qemu-system-i386"
|
if [ -z "$SERENITY_QEMU_BIN" ]; then
|
||||||
|
if [ "$SERENITY_ARCH" = "x86_64" ]; then
|
||||||
|
SERENITY_QEMU_BIN="qemu-system-x86_64"
|
||||||
|
else
|
||||||
|
SERENITY_QEMU_BIN="qemu-system-i386"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
[ -z "$SERENITY_KERNEL_CMDLINE" ] && SERENITY_KERNEL_CMDLINE="hello"
|
[ -z "$SERENITY_KERNEL_CMDLINE" ] && SERENITY_KERNEL_CMDLINE="hello"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue