[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 04/26] configure: don't enable cross compilers unless in targe
From: |
Alex Bennée |
Subject: |
[PATCH v3 04/26] configure: don't enable cross compilers unless in target_list |
Date: |
Thu, 20 Oct 2022 12:51:47 +0100 |
This avoids the unfortunate effect of always builds the pc-bios blobs
for targets the user isn't interested in.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
configure | 9 +++++++++
1 file changed, 9 insertions(+)
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
- [PATCH v3 10/26] tcg: Avoid using hardcoded /tmp, (continued)
- [PATCH v3 10/26] tcg: Avoid using hardcoded /tmp, Alex Bennée, 2022/10/20
- [PATCH v3 02/26] tests/docker: update test-mingw to run single build, Alex Bennée, 2022/10/20
- [PATCH v3 08/26] tests/tcg: use regular semihosting for nios2-softmmu, Alex Bennée, 2022/10/20
- [PATCH v3 13/26] fsdev/virtfs-proxy-helper: Use g_mkdir(), Alex Bennée, 2022/10/20
- [PATCH v3 06/26] tests/avocado: extend the timeout for x86_64 tcg tests, Alex Bennée, 2022/10/20
- [PATCH v3 04/26] configure: don't enable cross compilers unless in target_list,
Alex Bennée <=
- [PATCH v3 11/26] util/qemu-sockets: Use g_get_tmp_dir() to get the directory for temporary files, Alex Bennée, 2022/10/20
- [PATCH v3 03/26] tests/docker: Add flex/bison to `debian-all-test`, Alex Bennée, 2022/10/20
- [PATCH v3 14/26] hw/usb: dev-mtp: Use g_mkdir(), Alex Bennée, 2022/10/20
- [PATCH v3 12/26] block/vvfat: Unify the mkdir() call, Alex Bennée, 2022/10/20