qemu: export Qemu start script in release tarball

First basic step, we also want a menuconfig-like way of changing the
settings, e.g., networking options.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-06-05 14:07:02 +02:00
committed by Tobias Waldekranz
parent 4fa89651a7
commit 93701ae2ef
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -52,3 +52,7 @@ fi
# For use outside of the build system, e.g., Qeneth
ln -sf rootfs.squashfs "$BINARIES_DIR/$NAME$(ver).img"
# Create the necessary files to run Qemu from a build
grep QEMU_ "$BR2_CONFIG" | sed 's/"images[\/]*/"/g' > "/$BINARIES_DIR/qemu.cfg"
cp "$BR2_EXTERNAL_INFIX_PATH/qemu/qemu.sh" "/$BINARIES_DIR/"
+7 -1
View File
@@ -184,7 +184,13 @@ if [ "$1" ]; then
cd $1
fi
load_qemucfg .config
if [ -f .config ]; then
# 'make run' from output/ or build directory
load_qemucfg .config
else
# ./qemu.sh from output/images/ or release tarball
load_qemucfg qemu.cfg
fi
echo "Starting Qemu :: Ctrl-a x -- exit | Ctrl-a c -- toggle console/monitor"
line=$(stty -g)