* [PATCH] configure: Restrict TCG to emulation
@ 2022-07-06 15:38 Thomas Huth
2022-07-07 1:01 ` Richard Henderson
2022-07-12 20:44 ` Philippe Mathieu-Daudé via
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2022-07-06 15:38 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini
Cc: Philippe Mathieu-Daudé, Alex Bennée, Michael Tokarev,
Richard Henderson
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
If we don't need to emulate any target, we certainly don't need TCG.
This should also help to compile again with
".../configure --enable-tools --disable-system --disable-user"
on systems that do not have a TCG backend.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[thuth: Re-arranged the code, remove check-softfloat from buildtest.yml]
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
configure | 20 ++++++++++++++------
.gitlab-ci.d/buildtest.yml | 2 +-
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/configure b/configure
index 76728b31f7..61bd807a47 100755
--- a/configure
+++ b/configure
@@ -329,7 +329,7 @@ fi
fdt="auto"
# 2. Automatically enable/disable other options
-tcg="enabled"
+tcg="auto"
cfi="false"
# parse CC options second
@@ -1409,11 +1409,6 @@ EOF
fi
fi
-if test "$tcg" = "enabled"; then
- git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
- git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
-fi
-
if test -z "${target_list+xxx}" ; then
default_targets=yes
for target in $default_target_list; do
@@ -1444,6 +1439,19 @@ case " $target_list " in
;;
esac
+if test "$tcg" = "auto"; then
+ if test -z "$target_list"; then
+ tcg="disabled"
+ else
+ tcg="enabled"
+ fi
+fi
+
+if test "$tcg" = "enabled"; then
+ git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
+ git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
+fi
+
feature_not_found() {
feature=$1
remedy=$2
diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index 8a4353ef93..1931b77b49 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -599,7 +599,7 @@ build-tools-and-docs-debian:
optional: true
variables:
IMAGE: debian-amd64
- MAKE_CHECK_ARGS: check-unit check-softfloat ctags TAGS cscope
+ MAKE_CHECK_ARGS: check-unit ctags TAGS cscope
CONFIGURE_ARGS: --disable-system --disable-user --enable-docs --enable-tools
QEMU_JOB_PUBLISH: 1
artifacts:
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] configure: Restrict TCG to emulation
2022-07-06 15:38 [PATCH] configure: Restrict TCG to emulation Thomas Huth
@ 2022-07-07 1:01 ` Richard Henderson
2022-07-12 20:44 ` Philippe Mathieu-Daudé via
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2022-07-07 1:01 UTC (permalink / raw)
To: Thomas Huth, qemu-devel, Paolo Bonzini
Cc: Philippe Mathieu-Daudé, Alex Bennée, Michael Tokarev
On 7/6/22 21:08, Thomas Huth wrote:
> From: Philippe Mathieu-Daudé<f4bug@amsat.org>
>
> If we don't need to emulate any target, we certainly don't need TCG.
>
> This should also help to compile again with
> ".../configure --enable-tools --disable-system --disable-user"
> on systems that do not have a TCG backend.
>
> Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
> [thuth: Re-arranged the code, remove check-softfloat from buildtest.yml]
> Signed-off-by: Thomas Huth<thuth@redhat.com>
> ---
> configure | 20 ++++++++++++++------
> .gitlab-ci.d/buildtest.yml | 2 +-
> 2 files changed, 15 insertions(+), 7 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] configure: Restrict TCG to emulation
2022-07-06 15:38 [PATCH] configure: Restrict TCG to emulation Thomas Huth
2022-07-07 1:01 ` Richard Henderson
@ 2022-07-12 20:44 ` Philippe Mathieu-Daudé via
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé via @ 2022-07-12 20:44 UTC (permalink / raw)
To: Thomas Huth, qemu-devel, Paolo Bonzini
Cc: Alex Bennée, Michael Tokarev, Richard Henderson
On 6/7/22 17:38, Thomas Huth wrote:
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>
> If we don't need to emulate any target, we certainly don't need TCG.
>
> This should also help to compile again with
> ".../configure --enable-tools --disable-system --disable-user"
> on systems that do not have a TCG backend.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> [thuth: Re-arranged the code, remove check-softfloat from buildtest.yml]
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> configure | 20 ++++++++++++++------
> .gitlab-ci.d/buildtest.yml | 2 +-
> 2 files changed, 15 insertions(+), 7 deletions(-)
Thanks for re-spinning! Queued via mips-next.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-12 21:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-06 15:38 [PATCH] configure: Restrict TCG to emulation Thomas Huth
2022-07-07 1:01 ` Richard Henderson
2022-07-12 20:44 ` Philippe Mathieu-Daudé via
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).