From nobody Mon Feb 9 23:01:27 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1661466893; cv=none; d=zohomail.com; s=zohoarc; b=oDElYoaGPur9VNGuz6EPrb4XBYbyK9yGgr1rlKNaDS6I3lqQ80DLYJf6zPfJLNO85pxrcJAbnBVCzmv+DDYgDD8OBfqlgsydFZJSoOH565UL46Kqb4najRQiFbu3vH6EWlNgND9qji7Eas9J4ZFUYjwEKkR+zzKlkFQOhs8TKqI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661466893; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=pZKtHNRLnlZ9cATm+8Ho8woN7n60nqdjBzsPn4N8Ozw=; b=U3yaQcFH2GuhOtjfw5hwnkJ1+ox61QhNMb4abc2/0jN2oAE4GpL572dO+kNlVFc78uHxqdkqHT5XtMD+zUkNrsed+u3Gu9dm+AeNyXELPeUGeeJvG2MY1AZTrFViwnZ/OSgUQJz/ODWyMllGEjESNsVL74VNt9M/XLP5RbIkLnw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 166146689352166.2550323692119; Thu, 25 Aug 2022 15:34:53 -0700 (PDT) Received: from localhost ([::1]:53846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRLR6-0002Cj-HY for importer@patchew.org; Thu, 25 Aug 2022 18:34:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRLKT-00027c-Rw for qemu-devel@nongnu.org; Thu, 25 Aug 2022 18:28:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRLKR-0004Xf-GC for qemu-devel@nongnu.org; Thu, 25 Aug 2022 18:28:01 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-472--3rjW7IAMwmkSX0MnTvMJw-1; Thu, 25 Aug 2022 18:27:57 -0400 Received: by mail-wm1-f71.google.com with SMTP id n7-20020a1c2707000000b003a638356355so9306737wmn.2 for ; Thu, 25 Aug 2022 15:27:56 -0700 (PDT) Received: from goa-sendmail ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id q62-20020a1c4341000000b003a3442f1229sm6529431wma.29.2022.08.25.15.27.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 15:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661466478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pZKtHNRLnlZ9cATm+8Ho8woN7n60nqdjBzsPn4N8Ozw=; b=cn3Whd+hs0kD5wL2gpO61C1tWxYNRdacZtPYA/O8KFPndGAFv51e3r2R5NmxzArqdiGtiZ El6zj8AUxDzeuUPj8E08vfS4FpMOjHpu736IPY6WROkJ6MNd0yf9Qq1JNougXztIdtIp3Q /2tyldut9zZAytMUWjJp1JRPBpXMZnA= X-MC-Unique: -3rjW7IAMwmkSX0MnTvMJw-1 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; bh=pZKtHNRLnlZ9cATm+8Ho8woN7n60nqdjBzsPn4N8Ozw=; b=npFTa/JP4ofqe8f7p8VduMLOPkAFxLpPLwCba0X6PvTmNKhLnILdTskPQq4F51ie5k hlGTahb+fO6LTFRwYz7HLNIsXvG51rDyZLTH11C9/KCOGmB9Terg8Y1i2+cC0iZ5m0vt Wawvd8hUaQLbaPoxPjLKww+ZQaEOZWIaKAEueIdAjNil6PVH5s12Ig/Qp38HcAg2A290 hxvzTtocdNEReu1qTsmp8nX8UjWvAw/AmDLfDMTGam59rvNQKifJj/ADUm3z3PaILM5Q lakroG/dtHg3p/a2Q1xFHe5BlU2STst0jlNJEvbWpedHR27LCduzCmPtX3kSx1uNBza/ e02w== X-Gm-Message-State: ACgBeo03Q1WZkfpaSU1Gz71V/+dtkeWbOrcOmDqPWSn1/9cV2OxeSLER 6jSLGgVcrWFSOE3ZU/J5S3cnuz7k/vpRuoHwgtNa+bi8xdkWmsBU8ObZdFsfj+gaFQebi/OYnY9 MKs1uvxiQcKiZvQGrNCPuuhBWIof4BSrdlX0w//9CUa3lBJz8n4xt0+8omYC4sl+iMlE= X-Received: by 2002:a05:6000:98a:b0:225:8a17:15a6 with SMTP id by10-20020a056000098a00b002258a1715a6mr236048wrb.146.1661466475755; Thu, 25 Aug 2022 15:27:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5+eZiwKYWk4ogBvfll0SFtkCPg38xRr4LYNEbvVU8xpR/A5R5vpU6z8smNcU6JFOgI1zVQLw== X-Received: by 2002:a05:6000:98a:b0:225:8a17:15a6 with SMTP id by10-20020a056000098a00b002258a1715a6mr236041wrb.146.1661466475542; Thu, 25 Aug 2022 15:27:55 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org Subject: [PATCH 06/20] configure: return status code from probe_target_compiler Date: Fri, 26 Aug 2022 00:27:31 +0200 Message-Id: <20220825222745.38779-7-pbonzini@redhat.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220825222745.38779-1-pbonzini@redhat.com> References: <20220825222745.38779-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, 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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1661466894167100001 Content-Type: text/plain; charset="utf-8" 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 --- configure | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/configure b/configure index c533eaada0..6f15f3c687 100755 --- a/configure +++ b/configure @@ -2181,6 +2181,7 @@ probe_target_compiler() { target_ranlib=3D target_strip=3D fi + test -n "$target_cc" } =20 write_target_makefile() { @@ -2328,10 +2329,9 @@ done =20 # Mac OS X ships with a broken assembler roms=3D -probe_target_compiler i386-softmmu -if test -n "$target_cc" && - test "$targetos" !=3D "darwin" && test "$targetos" !=3D "sunos" &&= \ - test "$targetos" !=3D "haiku" && test "$softmmu" =3D yes ; then +if test "$targetos" !=3D "darwin" && test "$targetos" !=3D "sunos" && \ + test "$targetos" !=3D "haiku" && test "$softmmu" =3D yes && \ + probe_target_compiler i386-softmmu; then roms=3D"pc-bios/optionrom" config_mak=3Dpc-bios/optionrom/config.mak echo "# Automatically generated by configure - do not modify" > $confi= g_mak @@ -2339,8 +2339,7 @@ if test -n "$target_cc" && write_target_makefile >> $config_mak fi =20 -probe_target_compiler ppc-softmmu -if test -n "$target_cc" && test "$softmmu" =3D yes; then +if test "$softmmu" =3D yes && probe_target_compiler ppc-softmmu; then roms=3D"$roms pc-bios/vof" config_mak=3Dpc-bios/vof/config.mak echo "# Automatically generated by configure - do not modify" > $confi= g_mak @@ -2350,8 +2349,7 @@ fi =20 # Only build s390-ccw bios if the compiler has -march=3Dz900 or -march=3Dz= 10 # (which is the lowest architecture level that Clang supports) -probe_target_compiler s390x-softmmu -if test -n "$target_cc" && test "$softmmu" =3D yes; then +if test "$softmmu" =3D yes && probe_target_compiler s390x-softmmu; then write_c_skeleton do_compiler "$target_cc" $target_cc_cflags -march=3Dz900 -o $TMPO -c $TM= PC has_z900=3D$? --=20 2.37.1