Skip to contentSkip to conversation

configure: add ppc target back to container tests

PATCH In review Florian Hofhammer 3 participants 3 messages Jan 19

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: add ppc target back to container tests

Commit 2ff8c9a298 removed support for 32-bit PPC hosts from the build system. Unfortunately, the patch also removed the 32-bit PPC target for containerized tests, which leads to an error when trying to run tests, e.g., with "make check-tcg":
"make[1]: *** No rule to make target 'docker-image-debian-ppc-cross', needed by 'build-tcg-tests-ppc-linux-user'. Stop."

This patch adds the PPC target back for containerized tests.

Fixes 2ff8c9a2984bb20e350ae52152812c5370b02e32
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index e69b3e474e..1b0af0cf46 100755
@@ -1451,7 +1451,7 @@ probe_target_compiler() {
         container_image=debian-all-test-cross
         container_cross_prefix=mips64-linux-gnuabi64-
         ;;
-      ppc64|ppc64le)
+      ppc|ppc64|ppc64le)
         container_image=debian-all-test-cross
         container_cross_prefix=powerpc${target_arch#ppc}-linux-gnu-
         ;;
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Florian Hofhammer

Commit 2ff8c9a298 removed support for 32-bit PPC hosts from the build system. Unfortunately, the patch also removed the 32-bit PPC target for containerized tests, which leads to an error when trying to run tests, e.g., with "make check-tcg":
"make[1]: *** No rule to make target 'docker-image-debian-ppc-cross', needed by 'build-tcg-tests-ppc-linux-user'. Stop."

This patch adds the PPC target back for containerized tests.

Fixes 2ff8c9a2984bb20e350ae52152812c5370b02e32
---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index e69b3e474e..1b0af0cf46 100755

configure probe_target_compiler() { · line 1457

Quoted 8 lines
configure +1 -1
@@ -1451,7 +1451,7 @@ probe_target_compiler() {
          container_image=debian-all-test-cross
          container_cross_prefix=mips64-linux-gnuabi64-
          ;;
-      ppc64|ppc64le)
+      ppc|ppc64|ppc64le)
          container_image=debian-all-test-cross
          container_cross_prefix=powerpc${target_arch#ppc}-linux-gnu-
          ;;
#2 lore raw
Quoted 7 lines · Thomas Huth
Quoted 6 lines · Florian Hofhammer

Commit 2ff8c9a298 removed support for 32-bit PPC hosts from the build system. Unfortunately, the patch also removed the 32-bit PPC target for containerized tests, which leads to an error when trying to run tests, e.g., with "make check-tcg":
"make[1]: *** No rule to make target 'docker-image-debian-ppc-cross', needed by 'build-tcg-tests-ppc-linux-user'.  Stop."

Oops.

Quoted 25 lines
Quoted 14 lines

This patch adds the PPC target back for containerized tests.

Fixes 2ff8c9a2984bb20e350ae52152812c5370b02e32

---
  configure | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index e69b3e474e..1b0af0cf46 100755
@@ -1451,7 +1451,7 @@ probe_target_compiler() {
Quoted 8 lines

          container_image=debian-all-test-cross container_cross_prefix=mips64-linux-gnuabi64-
          ;;
-      ppc64|ppc64le)
+      ppc|ppc64|ppc64le) container_image=debian-all-test-cross container_cross_prefix=powerpc${target_arch#ppc}-linux-gnu- ;;