diff mbox series

[isar-cip-core,1/2] start-qemu.sh: Add defaults for IMAGE_SECURITY

Message ID 20211124151744.949054-2-Quirin.Gylstorff@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series start-qemu add missing option | expand

Commit Message

Quirin Gylstorff Nov. 24, 2021, 3:17 p.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

for ease of use

Suggested-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 start-qemu.sh | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/start-qemu.sh b/start-qemu.sh
index 4817790..a92e9f4 100755
--- a/start-qemu.sh
+++ b/start-qemu.sh
@@ -40,6 +40,9 @@  fi
 
 if [ -z "${TARGET_IMAGE}" ];then
 	TARGET_IMAGE="cip-core-image"
+	if grep -s -q "IMAGE_SECURITY: true" .config.yaml; then
+		TARGET_IMAGE="cip-core-image-security"
+	fi
 fi
 
 case "$1" in