[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/31] configure: don't enable cross compilers unless in target_li
From: |
Alex Bennée |
Subject: |
[PULL 06/31] configure: don't enable cross compilers unless in target_list |
Date: |
Mon, 31 Oct 2022 13:09:45 +0000 |
This avoids the unfortunate effect of always builds the pc-bios blobs
for targets the user isn't interested in.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221027183637.2772968-5-alex.bennee@linaro.org>
diff --git a/configure b/configure
index 81561be7c1..dd6f58dcde 100755
--- a/configure
+++ b/configure
@@ -1877,6 +1877,15 @@ probe_target_compiler() {
container_cross_ranlib=
container_cross_strip=
+ # We shall skip configuring the target compiler if the user didn't
+ # bother enabling an appropriate guest. This avoids building
+ # extraneous firmware images and tests.
+ if test "${target_list#*$1}" != "$1"; then
+ break;
+ else
+ return 1
+ fi
+
target_arch=${1%%-*}
case $target_arch in
aarch64) container_hosts="x86_64 aarch64" ;;
--
2.34.1
- [PULL for 7.2 00/31] testing and plugins updates, Alex Bennée, 2022/10/31
- [PULL 06/31] configure: don't enable cross compilers unless in target_list,
Alex Bennée <=
- [PULL 07/31] configure: fix the --enable-static --disable-pie case, Alex Bennée, 2022/10/31
- [PULL 10/31] tests/tcg: use regular semihosting for nios2-softmmu, Alex Bennée, 2022/10/31
- [PULL 03/31] tests/docker: update fedora-win[32|64]-cross with lcitool, Alex Bennée, 2022/10/31
- [PULL 04/31] tests/docker: update test-mingw to run single build, Alex Bennée, 2022/10/31
- [PULL 13/31] tcg: Avoid using hardcoded /tmp, Alex Bennée, 2022/10/31
- [PULL 12/31] semihosting/arm-compat-semi: Avoid using hardcoded /tmp, Alex Bennée, 2022/10/31
- [PULL 09/31] tests/docker: Add flex/bison to `debian-hexagon-cross`, Alex Bennée, 2022/10/31
- [PULL 15/31] hw/usb: dev-mtp: Use g_mkdir(), Alex Bennée, 2022/10/31
- [PULL 11/31] tests/tcg/nios2: Tweak 10m50-ghrd.ld, Alex Bennée, 2022/10/31
- [PULL 14/31] block/vvfat: Unify the mkdir() call, Alex Bennée, 2022/10/31