Skip to contentSkip to conversation

configure: fix container_hosts misspellings and duplications

PATCH In review Paolo Bonzini 3 participants 3 messages Aug 7, 2023 – Aug 10, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: fix container_hosts misspellings and duplications

container_hosts is matched against $cpu, so it must contain QEMU canonical architecture names, not Debian architecture names. Also do not set $container_hosts inside the loop, since it is already set before.

---
 configure | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
configure +1 -2
index f5a6624ddf1..0496189787a 100755
@@ -1347,7 +1347,7 @@ probe_target_compiler() {
     sh4) container_hosts=x86_64 ;;
     sparc64) container_hosts=x86_64 ;;
     tricore) container_hosts=x86_64 ;;
-    x86_64) container_hosts="aarch64 ppc64el x86_64" ;;
+    x86_64) container_hosts="aarch64 ppc64le x86_64" ;;
     xtensa*) container_hosts=x86_64 ;;
   esac
 
@@ -1458,7 +1458,6 @@ probe_target_compiler() {
         container_cross_prefix=x86_64-linux-gnu-
         ;;
       xtensa*)
-        container_hosts=x86_64
         container_image=debian-xtensa-cross
 
         # default to the dc232b cpu
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini
Quoted 9 lines · Paolo Bonzini

container_hosts is matched against $cpu, so it must contain QEMU canonical architecture names, not Debian architecture names. Also do not set $container_hosts inside the loop, since it is already set before.

---
  configure | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)