[Buildroot] [git commit] board/qemu: fix post-image
Yann E. MORIN
yann.morin.1998 at free.fr
Thu Apr 13 17:36:16 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=131cb09c79ffe155c51444b5b86145d9e184c304
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Last-minute changes to d9b244d8a3c8 (board/qemu: define start qemu
script outside of post-image script) were not tested before being
pushed, so they introduced a bug.
As Arnout put it:
[...] multiple expressions need a -e to interpret them as
expressions (now they're interpreted as file names).
Fixes: d9b244d8a3c83b39f67444f36b21a88cbaf4547b
Reported-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
Cc: James Knight <james.d.knight at live.com>
---
board/qemu/post-image.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/qemu/post-image.sh b/board/qemu/post-image.sh
index ccd0fb78c9..763287ca39 100755
--- a/board/qemu/post-image.sh
+++ b/board/qemu/post-image.sh
@@ -41,10 +41,10 @@ case ${DEFCONFIG_NAME} in
;;
esac
-sed "s|@SERIAL_ARGS@|${SERIAL_ARGS}|g" \
- "s|@DEFAULT_ARGS@|${DEFAULT_ARGS}|g" \
- "s|@QEMU_CMD_LINE@|${QEMU_CMD_LINE}|g" \
- "s|@HOST_DIR@|${HOST_DIR}|g" \
+sed -e "s|@SERIAL_ARGS@|${SERIAL_ARGS}|g" \
+ -e "s|@DEFAULT_ARGS@|${DEFAULT_ARGS}|g" \
+ -e "s|@QEMU_CMD_LINE@|${QEMU_CMD_LINE}|g" \
+ -e "s|@HOST_DIR@|${HOST_DIR}|g" \
<"${QEMU_BOARD_DIR}/start-qemu.sh.in" \
>"${START_QEMU_SCRIPT}"
chmod +x "${START_QEMU_SCRIPT}"
More information about the buildroot
mailing list