mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Initial defconfig is based on Buildroot qemu_x86_64_defconfig, with a Bootlin pre-built toolchain and a very basic qemu.sh script, generated by a local post-image.sh, for `make run`. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
17 lines
422 B
Bash
Executable File
17 lines
422 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shellcheck disable=SC1090
|
|
. "$BR2_CONFIG" 2>/dev/null
|
|
|
|
cat <<-EOF >"$BINARIES_DIR/qemu.sh"
|
|
#!/bin/sh
|
|
line=\$(stty -g)
|
|
stty raw
|
|
qemu-system-x86_64 -M pc -cpu kvm64 -enable-kvm -nographic \\
|
|
-kernel bzImage -append "rootwait root=/dev/vda console=ttyS0" \\
|
|
-drive file=rootfs.ext2,if=virtio,format=raw \\
|
|
-net nic,model=virtio -net user
|
|
stty "\$line"
|
|
EOF
|
|
chmod +x "$BINARIES_DIR/qemu.sh"
|