diff options
author | Alex Bennée | 2022-10-27 20:36:10 +0200 |
---|---|---|
committer | Alex Bennée | 2022-10-31 21:37:58 +0100 |
commit | c3b570b5a9a24d25ab522def7c928c6a3be3d842 (patch) | |
tree | edec673431cbc2c066d31e4bae427978eceb2864 /configure | |
parent | tests/docker: Add flex/bison to `debian-all-test` (diff) | |
download | qemu-c3b570b5a9a24d25ab522def7c928c6a3be3d842.tar.gz qemu-c3b570b5a9a24d25ab522def7c928c6a3be3d842.tar.xz qemu-c3b570b5a9a24d25ab522def7c928c6a3be3d842.zip |
configure: don't enable cross compilers unless in target_list
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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" ;; |