diff mbox series

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

Message ID abc5d5e565d79e6def6b854f697ed7ab09579c47.1664902098.git.jan.kiszka@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Add qemu-riscv64 target, refactorings, kernel updates, CI fix | expand

Commit Message

Jan Kiszka Oct. 4, 2022, 4:48 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

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@siemens.com>
---
 start-qemu.sh | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
diff mbox series

Patch

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
 }