mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -19,14 +19,17 @@ if [ -z "${QEMU_CMD_LINE}" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Replace output/images path by ${IMAGE_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\}}"
|
||||
# Remove output/images path since the script will be in
|
||||
# the same directory as the kernel and the rootfs images.
|
||||
QEMU_CMD_LINE="${QEMU_CMD_LINE//output\/images\//}"
|
||||
|
||||
# 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}")"
|
||||
QEMU_CMD_LINE="${QEMU_CMD_LINE//-serial stdio/}"
|
||||
|
||||
# Remove any string before qemu-system-*
|
||||
QEMU_CMD_LINE="$(sed -r -e 's/^.*(qemu-system-)/\1/' <<<"${QEMU_CMD_LINE}")"
|
||||
|
||||
# Disable graphical output and redirect serial I/Os to console
|
||||
case ${DEFCONFIG_NAME} in
|
||||
(qemu_sh4eb_r2d_defconfig|qemu_sh4_r2d_defconfig)
|
||||
@@ -40,7 +43,9 @@ esac
|
||||
|
||||
cat <<-_EOF_ > "${START_QEMU_SCRIPT}"
|
||||
#!/bin/sh
|
||||
IMAGE_DIR="\${0%/*}/"
|
||||
(
|
||||
BINARIES_DIR="\${0%/*}/"
|
||||
cd \${BINARIES_DIR}
|
||||
|
||||
if [ "\${1}" = "serial-only" ]; then
|
||||
EXTRA_ARGS='${SERIAL_ARGS}'
|
||||
@@ -50,6 +55,7 @@ cat <<-_EOF_ > "${START_QEMU_SCRIPT}"
|
||||
|
||||
export PATH="${HOST_DIR}/bin:\${PATH}"
|
||||
exec ${QEMU_CMD_LINE} \${EXTRA_ARGS}
|
||||
)
|
||||
_EOF_
|
||||
|
||||
chmod +x "${START_QEMU_SCRIPT}"
|
||||
|
||||
Reference in New Issue
Block a user