[isar-cip-core][PATCH 04/12] start-qemu: Rework usage output


Jan Kiszka
 

From: Jan Kiszka <jan.kiszka@...>

Avoid "echo -e", not supported with all shells.

Refactor the environment help to make it better readable. Add missing
variables at this chance.

Signed-off-by: Jan Kiszka <jan.kiszka@...>
---
start-qemu.sh | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/start-qemu.sh b/start-qemu.sh
index bcc7a518..c8d4f47c 100755
--- a/start-qemu.sh
+++ b/start-qemu.sh
@@ -13,10 +13,13 @@
usage()
{
echo "Usage: $0 ARCHITECTURE [QEMU_OPTIONS]"
- echo -e "\nSet QEMU_PATH environment variable to use a locally " \
- "built QEMU version"
- echo -e "\nSet SWUPDATE_BOOT environment variable to boot swupdate image." \
- echo -e "\nSet SECURE_BOOT environment variable to boot a secure boot environment."
+ echo
+ echo "Environment variables (default to settings in .config.yml):"
+ echo " QEMU_PATH use a locally built QEMU version"
+ echo " SWUPDATE_BOOT boot swupdate image"
+ echo " SECURE_BOOT start a secure boot environment"
+ echo " DISTRO_RELEASE select a specific Debian release"
+ echo " TARGET_IMAGE select a specific image type"
exit 1
}

--
2.35.3