From patchwork Thu Oct 13 15:47:02 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: 614743 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp315597pvb; Thu, 13 Oct 2022 08:50:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wU9xJWcmXoA9s6yNZoemjLxu4LT78mwFT7aMFF+IFqbLhzNI3SRyb3Xd0jIbs0pRh9Dkn X-Received: by 2002:ad4:5ba1:0:b0:4b1:9a15:4766 with SMTP id 1-20020ad45ba1000000b004b19a154766mr284204qvq.6.1665676207838; Thu, 13 Oct 2022 08:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665676207; cv=none; d=google.com; s=arc-20160816; b=nzKVDzp2dI/Ee0d+JqYC5esO5Z7eYpkHQkFRsBpWUDlWqCTfzx3+TwYlnSuQc79zQJ V4CfFgvpxpJP98VY9IwUUxciICvHD7r/CW3idr7kRNWZ4TJNSEwj/ymCINFR1QVCRU1Q O2hSlhUY0KOvASfUHieMXuP6BcDVdirw7k25x+Ld44TtCn9M309fckWQaWXURCOaNXe4 vHClOalq1nOLasj8EOkkIxNW0C0RD3Yi7WVUnSNztZjwHHrVYllrfGFdY1aZseiU8anc JWZ5vpR3vAfSmT97eRrA/0o5snCAQLD52kYKLVThUFSmVuA0+oyriBtHw8/2BGhGhx7E vMwQ== 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=l7SmkBkb58R6n4ne7NU6GDv/kWwWZJH06GSqHAlR/+Y=; b=ALq1H5hSvRM/bcSuVw+8jyBpiXjqgisD43z4IETED6vBrrvqHHbv/2Y/XAwzNTSCTF WgG/BL8KHZ1ui+KhiB/KIkIok9y9p5UnSY9DvMKeu3Qp7DW7XzcAZBc5fwDEeo2r/EeJ ukZybS8NEyEYxPVPp8EMRCLJWDu/9MeZ6vSIz4tGQMtLgI0yXgPClbPcyq3GDdgjweIF kn2v48nxtpmFmZymMcaPNrqZPU50Gq3++ovRrijuZGsm+wufizTMBJIe5Mg1oEB72nqP glOHMo+dbRpz6ZtWCDw7LVj83biqglHDzwzbGKmxBkV1IsewU/8DKFPriGHQlo9kcsxP gWDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pFUKknOh; 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 r1-20020a0562140c8100b00498faf5a412si106333qvr.35.2022.10.13.08.50.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Oct 2022 08:50:07 -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=pFUKknOh; 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]:51248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oj0TH-00064X-6s for patch@linaro.org; Thu, 13 Oct 2022 11:50:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj0QR-00062g-MT for qemu-devel@nongnu.org; Thu, 13 Oct 2022 11:47:11 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:41938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oj0QQ-0006nj-2C for qemu-devel@nongnu.org; Thu, 13 Oct 2022 11:47:11 -0400 Received: by mail-wr1-x42a.google.com with SMTP id bu30so3470592wrb.8 for ; Thu, 13 Oct 2022 08:47:09 -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=l7SmkBkb58R6n4ne7NU6GDv/kWwWZJH06GSqHAlR/+Y=; b=pFUKknOhTEX1KtVpnhNN229iO6BAyhWJzWZRRx334EPlQaedM3YTfI6jpYacdGsbwF hHAJ6tXTh4w6UloVYJW05rYNTpwXfXWEtB1weJfQpIcSbgRpH/9q9tYyX4Fpvg/JTwhc Ey63zNgUlLlnpKPjJBdDU2cBP+9yWH7n6o/hh8Laaaftounh35q+FAFkGv0HlSmm6gDs 0FpgrVrAaW3K3XEXSdbX8HJiDsTvstz874/oFrrzvxWL0BkHVUBZ2gJqlLHVaSlIqodZ C2fLG+XwJN4xsokn47WpKWic+Q5PUC58hSloYIreMEnQI9osIdpdRlVrse0FsZluPZCn cBpQ== 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=l7SmkBkb58R6n4ne7NU6GDv/kWwWZJH06GSqHAlR/+Y=; b=nPDC6Nbehq16r9zsWHcxpwW2jFh4b/7UEgdVdAEluiTBucv0ig3bkYpxjkA6PGg2hf ndQswN2Mgt4PiHusSW02wNoO3cTVgBUerlznrYwLnwg1FCzKIveibV7bzT1CSZ29iMaL NYoca4JuVVntVRvwdsTa5CrXJqz8jf95veiOZ6C5s/C/Ev9aUk/kL0dNM/Q/Vhu8Lpk+ N3IeWtuv3rHa2oThYePVWgAoxFmNnHPAOSC6JVqqsA5plUzWCg+BsFolVYXX7vHsTbAX WWmsNrA0KSoHJrNJr/nxWNQtayfcJoP+9g/TZJEcPzHTurY9+D5uI5SjrFTKNDIXv8Re 7b5Q== X-Gm-Message-State: ACrzQf2z98USjCpCvbGYSbSkqa9oRFuvgPmEQ8t/ZIQpvccDabpJ/Bmw m24kQaMnLxT0h6FmBIbZUC3UaA== X-Received: by 2002:adf:dd0c:0:b0:22e:4bf6:6c08 with SMTP id a12-20020adfdd0c000000b0022e4bf66c08mr405684wrm.617.1665676028184; Thu, 13 Oct 2022 08:47:08 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id k8-20020a056000004800b002238ea5750csm2624083wrx.72.2022.10.13.08.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 08:47:07 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 368A31FFBC; Thu, 13 Oct 2022 16:47:06 +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 v2 4/7] configure: don't enable cross compilers unless in target_list Date: Thu, 13 Oct 2022 16:47:02 +0100 Message-Id: <20221013154705.1846261-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221013154705.1846261-1-alex.bennee@linaro.org> References: <20221013154705.1846261-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 --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 45ee6f4eb3..246651f25d 100755 --- a/configure +++ b/configure @@ -1866,6 +1866,11 @@ probe_target_compiler() { container_cross_ranlib= container_cross_strip= + case " $target_list " in + " $1 ") ;; + *) return 1 ;; + esac + target_arch=${1%%-*} case $target_arch in aarch64) container_hosts="x86_64 aarch64" ;;