board/qemu/post-image.sh: rename IMAGE_DIR to BINARIES_DIR
authorRomain Naour <romain.naour@gmail.com>
Tue, 24 Nov 2020 20:30:20 +0000 (21:30 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 5 Dec 2020 21:33:44 +0000 (22:33 +0100)
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>
board/qemu/post-image.sh

index 9a4d216274e9e15f4e9a12acc5eb7489312ec5eb..f34bf5043a46bca6294f15f504f56c9b03c0f4fe 100755 (executable)
@@ -19,9 +19,9 @@ if [ -z "${QEMU_CMD_LINE}" ]; then
     exit 0
 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.
-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
 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}"
        #!/bin/sh
-       IMAGE_DIR="\${0%/*}/"
+       BINARIES_DIR="\${0%/*}/"
 
        if [ "\${1}" = "serial-only" ]; then
            EXTRA_ARGS='${SERIAL_ARGS}'