Skip to contentSkip to conversation

configure: Only build s390-ccw BIOS for system emulation

PATCH Superseded Philippe Mathieu-Daudé 2 participants 2 messages Jan 24, 2021 – Jan 25, 2021

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Only build s390-ccw BIOS for system emulation

It is pointless to build the s390-ccw BIOS when only user-mode emulation is built. Only build it when system mode emulation is selected.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 6f6a319c2f6..d5e97ff2d52 100755
@@ -5453,7 +5453,7 @@ if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \
 fi
 
 # Only build s390-ccw bios if we're on s390x and the compiler has -march=z900
-if test "$cpu" = "s390x" ; then
+if test "$cpu" = "s390x" && test "$softmmu" = yes; then
   write_c_skeleton
   if compile_prog "-march=z900" ""; then
     roms="$roms s390-ccw"
Signature · 1 line
2.26.2
#1 lore raw
Quoted 14 lines · Philippe Mathieu-Daudé

It is pointless to build the s390-ccw BIOS when only user-mode emulation is built. Only build it when system mode emulation is selected.

---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index 6f6a319c2f6..d5e97ff2d52 100755

configure if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \ · line 5456

Quoted 5 lines
configure +1 -1
@@ -5453,7 +5453,7 @@ if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \
  fi
 
  # Only build s390-ccw bios if we're on s390x and the compiler has -march=z900
-if test "$cpu" = "s390x" ; then
+if test "$cpu" = "s390x" && test "$softmmu" = yes; then

Actually, you could even improve by checking whether we're building the s390x-softmmu target (the bios is also not required if we're just building the x86_64-softmmu target on a s390x host, for example).

Thomas