From patchwork Thu Oct 20 11:51:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 616724 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp232511pvb; Thu, 20 Oct 2022 05:46:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xI+MeNj+bz6R3yZnlA2dO625hFwnQs6plGA+t2AhksTguXEoQehrybeRDM816ZEqH9Q7B X-Received: by 2002:ad4:5c8c:0:b0:4b9:436:de75 with SMTP id o12-20020ad45c8c000000b004b90436de75mr1273262qvh.73.1666270004762; Thu, 20 Oct 2022 05:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666270004; cv=none; d=google.com; s=arc-20160816; b=AqdWkAYWl8HDW6v1Ju7hQ2ECNA6ptWTv3dNaXaeFa5bDxD3p93l+WOLQ7yT8cHkSGr qS3JJKGzJ5k+QBDHcjKSthn2CJFnxfV61zlPbs8VfCm/RJh32rC213PyPBMQ6g1byolT 9iFAMi7orXBVrAeMJEukknYo/xaTE+66zuroR+uRYY5SJa3urDcjXTPrz3EvCTi+Zvjl oMHWjBWecEvEOxwsakrb7EjPJUdTQ/visPg0xk648ojr0Agr8WDo/Gd9xOBQCAXRv5vC cZOQT/sv71EAa8z5PDFA+cpYbhX4GVoZI0OxdAoV5oYlz3HMqCJfaPj8DeCXCyq+EWXB GnmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eTmZioBHomlpJDRXUv3StRRoYOLWVw0UemeKw+NtcTA=; b=plsjz7XpZpAUh1QY7UjDDlfbMLSBJD6yRRNHDLcdgbcDi1HgR3+cWQ92oE2KA4usvL weYYxOumNMRtlyB34AJ51BKViJLATr5sLGzUVzNhVBqpmy7b1p0KATVsN8Z+EOoiFzAF og6q3M/Ef1O3pWJQeCDwT1eRRXfp7/cDY5NCMB6J88Q/kFkBw18S6tqTdV/JLVIQVeQA UbDezA0q/VBjRMZ3j29Xi5HsPZJSzdmakt2cFYVfcTzne7u+znuJly6WV6UiCHqRzCjz s1bmP2m32gZnlZ/meMGkU0Xe09oOpJTJaGUSZtxyGAmfjkOrvONSzExjxW0uS3azGlnD MT0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=os4l0wMs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z29-20020ac8431d000000b0039cf603ce22si4133032qtm.424.2022.10.20.05.46.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2022 05:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=os4l0wMs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olUwb-0002Zk-Te for patch@linaro.org; Thu, 20 Oct 2022 08:46:43 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olUjT-0004xL-Iu for patch@linaro.org; Thu, 20 Oct 2022 08:33:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olU61-0002dT-8w for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:52:30 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:40887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olU5v-0000nd-4b for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:52:18 -0400 Received: by mail-wr1-x42a.google.com with SMTP id w18so33982804wro.7 for ; Thu, 20 Oct 2022 04:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eTmZioBHomlpJDRXUv3StRRoYOLWVw0UemeKw+NtcTA=; b=os4l0wMssUM528MPVwaRW2CHGjVhaylClzMz52gWKwAM8AfeYQk+1mBLvs4TFBQQDK vkzCeBGxRrnuDUQG9f0Wrd+Xpxay14Z6dki6OLN5ajxKvtrB8s5sUz/OClSAENeIfVAE k5vd/fCXE0eQmhaDmqDQ6E391uhkyFZ0WzuQ41RQXvV4QEM1VZ3dKeQY7PAIY70PuaxJ xmefraRa/7X6dSRlwdTE9/NVy4y9PGr4cL3y7+fBOoTTbD4ZrVnDJdKYhYIQNXXl+4eh 2DKzAL08MP9kNT5jIAU2ueCIomTgr85eXWmMNJZ1bOzPAHh9fJXxA+2tn9+XweJt3uQa QsEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eTmZioBHomlpJDRXUv3StRRoYOLWVw0UemeKw+NtcTA=; b=Vt+HXvzBdAr0jRRIO8NkBsm4+RHs38Q83lZSMh6PKoOzRNGhF2lMfA1wMgKCKUVOjN fPfauYOak5I4TE2UiE1bEBnp8rpZhBYOdKxeWj6XY3Qcghpyix66a9uYoCzYF0swOijh BlRUHyEQkewiJ+wdZN0GIV6gMusYbjtDFVoguCUYLL9ILRIietktdIeuKm8tWEgUInME zz+2b6g0DeqlUdHbJga6Onzm10KThm6RRDOB6yT35JcHcovl2NPh4fkHPXQ9u4UhtVoF 2XEU1wW89U4TC1QbyZfoqoFEZxCqToufhmP1LjyeDCLISErpgXMyAIVAx+LWQujTMdRM UfTg== X-Gm-Message-State: ACrzQf0R5ptHUMrMh/ZqUSeOpYh73lMZfNEz4jCKSAUjmmznuWqeX3gx xGHO/RdZZl0gmeCY6qipxk0+Tg== X-Received: by 2002:a5d:6683:0:b0:22c:dcc5:abb2 with SMTP id l3-20020a5d6683000000b0022cdcc5abb2mr8157504wru.85.1666266733888; Thu, 20 Oct 2022 04:52:13 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id m8-20020adfe0c8000000b0022efc4322a9sm16207372wri.10.2022.10.20.04.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 04:52:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6D95A1FFBC; Thu, 20 Oct 2022 12:52:10 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v3 04/26] configure: don't enable cross compilers unless in target_list Date: Thu, 20 Oct 2022 12:51:47 +0100 Message-Id: <20221020115209.1761864-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020115209.1761864-1-alex.bennee@linaro.org> References: <20221020115209.1761864-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This avoids the unfortunate effect of always builds the pc-bios blobs for targets the user isn't interested in. Suggested-by: Paolo Bonzini Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- 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" ;;