configure: Only build s390-ccw BIOS when system emulation is built
PATCH v2 1/1 configure: Only build s390-ccw BIOS when system emulation is built
It is pointless to build the s390-ccw BIOS when only user-mode emulation is built. Only build it when s390 system mode emulation is selected.
---
v2: Restrict to s390x-softmmu (thuth)
We could move the whole block into the case(), but 1/ it doesn't look nice
2/ it doesn't match the rest of this file code style
Supersedes: <[email protected]>
--- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
configure +6 -1
@@ -461,6 +461,7 @@ skip_meson=no gettext="auto" fuse="auto" fuse_lseek="auto" +s390_ccw_bios="no" malloc_trim="auto"
@@ -5373,7 +5374,11 @@ 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 +case $target_list in + *"s390x-softmmu"*) s390_ccw_bios=yes + ;; +esac +if test "$s390_ccw_bios" = yes; then write_c_skeleton if compile_prog "-march=z900" ""; then roms="$roms s390-ccw"
Signature · 1 line
2.26.2
Quoted 30 lines · Philippe Mathieu-Daudé
It is pointless to build the s390-ccw BIOS when only user-mode emulation is built. Only build it when s390 system mode emulation is selected.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
v2: Restrict to s390x-softmmu (thuth)We could move the whole block into the
case(), but 1/ it doesn't look nice
2/ it doesn't match the rest of this file code styleSupersedes: <[email protected]>
--- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)configure +1
-0@@ -461,6 +461,7 @@ skip_meson=no gettext="auto" fuse="auto" fuse_lseek="auto" +s390_ccw_bios="no" malloc_trim="auto"
configure if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \ · line 5381
Quoted 9 lines
configure +5
-1@@ -5373,7 +5374,11 @@ 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 +case $target_list in + *"s390x-softmmu"*) s390_ccw_bios=yes + ;; +esac +if test "$s390_ccw_bios" = yes; then
Why did you drop the test for the host CPU? ... the s390-ccw bios currently only compiles on a s390x box...
Thomas
Quoted 34 lines · Thomas Huth
Quoted 33 lines · Philippe Mathieu-Daudé
It is pointless to build the s390-ccw BIOS when only user-mode emulation is built. Only build it when s390 system mode emulation is selected.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
v2: Restrict to s390x-softmmu (thuth)We could move the whole block into the
case(), but 1/ it doesn't look nice
2/ it doesn't match the rest of this file code styleSupersedes: <[email protected]>
---
configure | 7 ++++++-1 file changed, 6 insertions(+), 1 deletion(-)configure +0
-0@@ -461,6 +461,7 @@ skip_meson=nogettext="auto"
fuse="auto"
fuse_lseek="auto"
+s390_ccw_bios="no"
malloc_trim="auto"
@@ -5373,7 +5374,11 @@ if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \
fi
# Only build s390-ccw bios if we're on s390x and the compiler hasconfigure +0
-2-march=z900 -if test "$cpu" = "s390x" ; then
Quoted 8 lines
configure if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \ · line 5381
Quoted 5 lines
configure +5
-0+case $target_list in + *"s390x-softmmu"*) s390_ccw_bios=yes + ;; +esac +if test "$s390_ccw_bios" = yes; thenWhy did you drop the test for the host CPU? ... the s390-ccw bios currently only compiles on a s390x box...
I saw something odd but couldn't figure. Too much squashing and switching between branches...
Phil.