mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
board/qemu/post-image.sh: rename IMAGE_DIR to BINARIES_DIR
The output/images directory is called BINARIES_DIR in the Buildroot manual, not IMAGE_DIR. Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
d673618342
commit
7c48c677a9
@@ -19,9 +19,9 @@ if [ -z "${QEMU_CMD_LINE}" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace output/images path by ${IMAGE_DIR} since the script
|
# Replace output/images path by ${BINARIES_DIR} since the script
|
||||||
# will be in the same directory as the kernel and the rootfs images.
|
# will be in the same directory as the kernel and the rootfs images.
|
||||||
QEMU_CMD_LINE="${QEMU_CMD_LINE//output\/images/\${IMAGE_DIR\}}"
|
QEMU_CMD_LINE="${QEMU_CMD_LINE//output\/images/\${BINARIES_DIR\}}"
|
||||||
|
|
||||||
# Remove -serial stdio if present, keep it as default args
|
# Remove -serial stdio if present, keep it as default args
|
||||||
DEFAULT_ARGS="$(sed -r -e '/-serial stdio/!d; s/.*(-serial stdio).*/\1/' <<<"${QEMU_CMD_LINE}")"
|
DEFAULT_ARGS="$(sed -r -e '/-serial stdio/!d; s/.*(-serial stdio).*/\1/' <<<"${QEMU_CMD_LINE}")"
|
||||||
@@ -40,7 +40,7 @@ esac
|
|||||||
|
|
||||||
cat <<-_EOF_ > "${START_QEMU_SCRIPT}"
|
cat <<-_EOF_ > "${START_QEMU_SCRIPT}"
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
IMAGE_DIR="\${0%/*}/"
|
BINARIES_DIR="\${0%/*}/"
|
||||||
|
|
||||||
if [ "\${1}" = "serial-only" ]; then
|
if [ "\${1}" = "serial-only" ]; then
|
||||||
EXTRA_ARGS='${SERIAL_ARGS}'
|
EXTRA_ARGS='${SERIAL_ARGS}'
|
||||||
|
|||||||
Reference in New Issue
Block a user