d9b244d8a3
The following moves the definition of the QEMU board's `start-qemu.sh` helper script from being inlined in the post-image script into its own file. This should, in theory, make it easier to maintain the script in the future. Signed-off-by: James Knight <james.d.knight@live.com> [yann.morin.1998@free.fr: - don't sub-shell in the script - merge all 3 sed calls into one - create dest file with the sed, don't cp first - also substitute HOST_DIR - fix shellcheck ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
15 lines
265 B
Bash
15 lines
265 B
Bash
#!/bin/sh
|
|
|
|
BINARIES_DIR="${0%/*}/"
|
|
# shellcheck disable=SC2164
|
|
cd "${BINARIES_DIR}"
|
|
|
|
if [ "${1}" = "serial-only" ]; then
|
|
EXTRA_ARGS='@SERIAL_ARGS@'
|
|
else
|
|
EXTRA_ARGS='@DEFAULT_ARGS@'
|
|
fi
|
|
|
|
export PATH="@HOST_DIR@/bin:${PATH}"
|
|
exec @QEMU_CMD_LINE@ ${EXTRA_ARGS}
|