mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 15:43:02 +02:00
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:
committed by
Tobias Waldekranz
parent
4fa89651a7
commit
93701ae2ef
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user