mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
Ninja-based buildsystem now building a running kernel!
This commit is contained in:
22
qemu.sh
Executable file
22
qemu.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
build=${1:-"$(dirname $0)/build"}
|
||||
ninja -C $build
|
||||
|
||||
kvm=""
|
||||
if [[ -f /dev/kvm ]]; then
|
||||
kvm="--enable-kvm"
|
||||
fi
|
||||
|
||||
exec qemu-system-x86_64 \
|
||||
-drive "if=pflash,format=raw,file=${build}/flash.img" \
|
||||
-drive "format=raw,file=${build}/popcorn.img" \
|
||||
-smp 1 \
|
||||
-m 512 \
|
||||
-d mmu,int,guest_errors \
|
||||
-D popcorn.log \
|
||||
-cpu Broadwell \
|
||||
-M q35 \
|
||||
-no-reboot \
|
||||
-nographic \
|
||||
$kvm
|
||||
Reference in New Issue
Block a user