From patchwork Thu Sep 29 11:41:57 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: 610595 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp897911pvb; Thu, 29 Sep 2022 06:40:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7zwMcDCHMM2zYfPAl5zpdDfcQZvB3bkeZolU9GNaJQOAJKHxo2EUKIZ/8zk+V51d0dfi8c X-Received: by 2002:a05:622a:151:b0:35d:53eb:c16e with SMTP id v17-20020a05622a015100b0035d53ebc16emr2425385qtw.174.1664458805563; Thu, 29 Sep 2022 06:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664458805; cv=none; d=google.com; s=arc-20160816; b=ik3Xm4fxUs1NJR/7WL8vZadrz8SgVR2rhyK9p2OfYBR1IbDdMaNHep8Svlhxz01SXt +HCwHkmzGc3JhjRVWUCQWjMAGGYsye/MAr1A4eFeNyZnkXDAzKGgoX3lEachEidGSA4z bmzNO5UYgWU/kN8F9YM0rSbuvE0pAIRhv+VKCqD+UwUxLrSYyu1LZmLhY43E0JfoBrtW 9KyjsQeW+9O0qUe/8tSsPm6Pf79Upfn3G09FEoUHs19q6+i90X9/8CjRV6zwHvIsD7zE JLogffiKe6Njvywu1EiGNqgGiMvh4+BkEZ4Y5OfllhBulzq9TBZBB70juNhyeGdKN/Vf Mh+w== 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=bDsi1hD1+ihs67mXhxzoSRQtyb3yN1ThtBgdcOSD36c=; b=C61UYcGBuSmgGyIvFT7urpdCYbfbLsYd1KgWv7/ThVmFwLn53FtifCq9Sm0yuMcdj/ 3SODqs8RarmNxRpe+Ih4O8mYQCGEmcuzsoLWRfZuHXzkxMtET5uJFUp45deK4MI31s5j 4FciWnYnRoeDBar+lL3NYBeTlMa+ZU+rmjZHgg18Uwn6B8cLw+p/22ams6Z77yTj4GMt hFEgCznodJM+8Rwo/Y8rGesCFf1/I1jGHQoaEpv7wP+qaAW6cZiU+UTd+/JvpCgse1qp cv3NOKL39qg7VS4+CgHXpkGmagulsViPIOqZJtPC5/lIIsbea8ejKgj7PMKkaV29Df1/ Z/Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pKD8eQXF; 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 r12-20020a0562140c4c00b0049911b37513si4426781qvj.454.2022.09.29.06.40.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Sep 2022 06:40:05 -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=pKD8eQXF; 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]:35716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odtll-0000wW-3j for patch@linaro.org; Thu, 29 Sep 2022 09:40:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ods3J-0000NV-2U for qemu-devel@nongnu.org; Thu, 29 Sep 2022 07:50:06 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:46069) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ods3B-0002O4-Vq for qemu-devel@nongnu.org; Thu, 29 Sep 2022 07:50:01 -0400 Received: by mail-wm1-x331.google.com with SMTP id d12-20020a05600c3acc00b003b4c12e47f3so596499wms.4 for ; Thu, 29 Sep 2022 04:49:56 -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; bh=bDsi1hD1+ihs67mXhxzoSRQtyb3yN1ThtBgdcOSD36c=; b=pKD8eQXF49dNFMfhSCUfvN2ESHSotI5Jk5EEjIZuAur/sBUmbgDsbwtGoUFNqc3Muw /KEORLv2pAkS/FUawfakmP9HUhE/Sax8/G4WMtRfhQrJKMtabW9Jz6HWYKOBYbUoxLO1 vWFvIDpM+fbIQ1bW08ixO9973jLv5sZ0nXh7Lylz5hUmDUMUZtToqJ9MOZFRGfKznVZe I+Iumn+790KZOwA6JhXd31AlsBZJP1JzGcZa39Ko2cPi+SPWPQoULOEd47JSrNYrWXAI +Plpa9npxcIX7kNAdQc4BjtLnitX6htT0DMDoWIiGcWleqya9zqlX7GtKZktLXKhZkXV uhIA== 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; bh=bDsi1hD1+ihs67mXhxzoSRQtyb3yN1ThtBgdcOSD36c=; b=AnGqHPyBoBnpjuOGeBZsQ+fpBH4D3dG2Udh6EWcrbFUgDNtn7Ep+kluezaRQmiYiP9 pU2gjWz25o280C/o2Dk4a6HUfeykGpXDMyFnZQ7Awygi7mjcNhYwjY9k8scBWEqmVy1L dW+ZMgYY9E+L9Z73OBA8EaF8XiKQTjWGbHf+X+RqjFvPEQETZVzNREvzzbG4kynrC1T7 Rc4KWfiCIv2Z9EXwBU+FPOTcve45tJ/SBUF/5zFE6SAJp7ji1NA8vPlek7RIpVDtPdjy j18fAw8lmHJcu8hB7klUpoOea6M16rfhV9t7XWqw2tO+m5Ui9e/I8yRSrXjD2oH9zaYM 8TYw== X-Gm-Message-State: ACrzQf1B8SS3fnuKm0zY7xRXj35pEUsAra5Ew1Y6K+kqV87W13+37RP0 34bnmNpJZqaTFRGFNLqYgrYuqA== X-Received: by 2002:a05:600c:35d2:b0:3b4:a897:d48 with SMTP id r18-20020a05600c35d200b003b4a8970d48mr10573298wmq.48.1664452195739; Thu, 29 Sep 2022 04:49:55 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id m11-20020a05600c4f4b00b003b31c560a0csm4369306wmq.12.2022.09.29.04.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 04:49:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 31C011FFC8; Thu, 29 Sep 2022 12:42:33 +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, minyihh@uci.edu, ma.mandourr@gmail.com, Luke.Craig@ll.mit.edu, cota@braap.org, aaron@os.amperecomputing.com, kuhn.chenqun@huawei.com, robhenry@microsoft.com, mahmoudabdalghany@outlook.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v1 17/51] configure: return status code from probe_target_compiler Date: Thu, 29 Sep 2022 12:41:57 +0100 Message-Id: <20220929114231.583801-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220929114231.583801-1-alex.bennee@linaro.org> References: <20220929114231.583801-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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" From: Paolo Bonzini For now, return 1 for container-based compilers. This will change as soon as ROMs will be buildable with them. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée --- configure | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/configure b/configure index aaa09fb957..f3984bb193 100755 --- a/configure +++ b/configure @@ -2147,6 +2147,7 @@ probe_target_compiler() { target_ranlib= target_strip= fi + test -n "$target_cc" } write_target_makefile() { @@ -2294,10 +2295,9 @@ done # Mac OS X ships with a broken assembler roms= -probe_target_compiler i386-softmmu -if test -n "$target_cc" && - test "$targetos" != "darwin" && test "$targetos" != "sunos" && \ - test "$targetos" != "haiku" && test "$softmmu" = yes ; then +if test "$targetos" != "darwin" && test "$targetos" != "sunos" && \ + test "$targetos" != "haiku" && test "$softmmu" = yes && \ + probe_target_compiler i386-softmmu; then roms="pc-bios/optionrom" config_mak=pc-bios/optionrom/config.mak echo "# Automatically generated by configure - do not modify" > $config_mak @@ -2305,8 +2305,7 @@ if test -n "$target_cc" && write_target_makefile >> $config_mak fi -probe_target_compiler ppc-softmmu -if test -n "$target_cc" && test "$softmmu" = yes; then +if test "$softmmu" = yes && probe_target_compiler ppc-softmmu; then roms="$roms pc-bios/vof" config_mak=pc-bios/vof/config.mak echo "# Automatically generated by configure - do not modify" > $config_mak @@ -2316,8 +2315,7 @@ fi # Only build s390-ccw bios if the compiler has -march=z900 or -march=z10 # (which is the lowest architecture level that Clang supports) -probe_target_compiler s390x-softmmu -if test -n "$target_cc" && test "$softmmu" = yes; then +if test "$softmmu" = yes && probe_target_compiler s390x-softmmu; then write_c_skeleton do_compiler "$target_cc" $target_cc_cflags -march=z900 -o $TMPO -c $TMPC has_z900=$?