[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/5] configure: Restrict TCG to emulation
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 2/5] configure: Restrict TCG to emulation |
Date: |
Wed, 13 Jul 2022 00:16:04 +0200 |
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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220706153816.768143-1-thuth@redhat.com>
---
.gitlab-ci.d/buildtest.yml | 2 +-
configure | 20 ++++++++++++++------
2 files changed, 15 insertions(+), 7 deletions(-)
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:
diff --git a/configure b/configure
index e8cc850727..465c5000ee 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
--
2.36.1
- [PULL 0/5] Darwin patches for 2022-07-12, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 1/5] hvf: Enable RDTSCP support, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 2/5] configure: Restrict TCG to emulation,
Philippe Mathieu-Daudé <=
- [PULL 3/5] ui/cocoa: Fix switched_to_fullscreen warning, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 4/5] ui/cocoa: Take refresh rate into account, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 5/5] avocado: Fix BUILD_DIR if it's equal to SOURCE_DIR, Philippe Mathieu-Daudé, 2022/07/12
- Re: [PULL 0/5] Darwin patches for 2022-07-12, Peter Maydell, 2022/07/14