* [isar-cip-core][PATCH] start-qemu.sh: Fix arm support
@ 2022-05-10 9:54 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2022-05-10 9:54 UTC (permalink / raw)
To: cip-dev
From: Jan Kiszka <jan.kiszka@siemens.com>
There is no "qemu-armhf", we called it qemu-arm. Therefore, finding its
images failed. Rename DISTRO_ARCH to QEMU_ARCH and set it to "arm" for
the related target.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
start-qemu.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/start-qemu.sh b/start-qemu.sh
index ad4fca5..80c0cd7 100755
--- a/start-qemu.sh
+++ b/start-qemu.sh
@@ -50,7 +50,7 @@ shift 1
case "${arch}" in
x86|x86_64|amd64)
- DISTRO_ARCH=amd64
+ QEMU_ARCH=amd64
QEMU=qemu-system-x86_64
QEMU_EXTRA_ARGS=" \
-cpu qemu64 \
@@ -70,7 +70,7 @@ case "${arch}" in
root=/dev/sda"
;;
arm64|aarch64)
- DISTRO_ARCH=arm64
+ QEMU_ARCH=arm64
QEMU=qemu-system-aarch64
QEMU_EXTRA_ARGS=" \
-cpu cortex-a57 \
@@ -84,7 +84,7 @@ case "${arch}" in
root=/dev/vda"
;;
arm|armhf)
- DISTRO_ARCH=armhf
+ QEMU_ARCH=arm
QEMU=qemu-system-arm
QEMU_EXTRA_ARGS=" \
-cpu cortex-a15 \
@@ -106,7 +106,7 @@ case "${arch}" in
;;
esac
-IMAGE_PREFIX="$(dirname $0)/build/tmp/deploy/images/qemu-${DISTRO_ARCH}/${TARGET_IMAGE}-cip-core-${DISTRO_RELEASE}-qemu-${DISTRO_ARCH}"
+IMAGE_PREFIX="$(dirname $0)/build/tmp/deploy/images/qemu-${QEMU_ARCH}/${TARGET_IMAGE}-cip-core-${DISTRO_RELEASE}-qemu-${QEMU_ARCH}"
if [ -z "${DISPLAY}" ]; then
QEMU_EXTRA_ARGS="${QEMU_EXTRA_ARGS} -nographic"
--
2.35.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-10 9:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 9:54 [isar-cip-core][PATCH] start-qemu.sh: Fix arm support Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.