From nobody Sat May 18 00:42:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.218.48 as permitted sender) client-ip=209.85.218.48; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-f48.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1611593911; cv=none; d=zohomail.com; s=zohoarc; b=IzoAY2CMMvM0tzyuiI35taR6D6nPsHOOtFqPLnUaQm6j1b6rJJfFpu7yCKNHqPugkYA5pLqIuXNY9usRrpQGtyb+3cx9HxRTNB/HtUNj8MMaEj1nrNA1ZKNdOmgnZb2OMWquhBsZ6Wlr+FSxXHxr7sPcqtK70HSbJYzZureZ9+4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611593911; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Sender:Subject:To; bh=nMqS6fgq0aMybkb/jEclhCDkmWMsNO0UTDT7wVdLOEI=; b=bNTJwIP33V87PoUi6HrBEnGBNmtqBc/rxTo3+cTz2b7BRbhIG0u3d+KhRzU300TDARYqRog94gCxQoQvND4RZ38DqrfSwa15su7X03lStgdFlMw/qNdd127mpC3pzWQzfcBgpDy8mNDmLfnE0kw6vY0LqMOdhDsWxw8TL/89zUc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by mx.zohomail.com with SMTPS id 1611593911289497.7152291286038; Mon, 25 Jan 2021 08:58:31 -0800 (PST) Received: by mail-ej1-f48.google.com with SMTP id g12so19064839ejf.8 for ; Mon, 25 Jan 2021 08:58:30 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id f22sm8633672eje.34.2021.01.25.08.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 08:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nMqS6fgq0aMybkb/jEclhCDkmWMsNO0UTDT7wVdLOEI=; b=mnmBp7moCrQp1flJPBsAnoAvYA08LuoRW4RKC5BiZLSh+WdqNHWKyxqtevg7ViHgap K1yLHpqbSrEKpegCmjYV1j85Q6emU+H2z0ht9y9iwaBO0szWPGRnsLyfVRFtc1yyTmcw 50RJxt1+jbtaHTzENVYjp959AWW06RH46vogo8wME4+hlO+OUz79570ikW6mJQ+hkfjf T0eIDuCUs9KTpE/zG5Bn5qXRojGVDClihmm7k4TYlppB7o4Xr1Bt5qOvqBwfMWsQiKEU s+VxWAjnbypOt5FBqJYqJk9m3zYyAhqHTVXOl/YDm4NTsFsb6dO3ebCyDGk9KMdqkzhr 2jtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=nMqS6fgq0aMybkb/jEclhCDkmWMsNO0UTDT7wVdLOEI=; b=E6JXQhmBDfc/xWkWM321LsrGMoL1zLi2ugfTAIRaBEAK+BYXUwH75YUTpCUi4FZ2rz 5LtYiN8rUZ8IZPjDhPglH3mwXZ/mIzct92kmsm65rY+k+tPpWMLHAU9aVr86f7CCooOW H8HKlj9aTJze1mBrAuVsOBk04lCOZJDfZhrZLqoalwBQowjybcu8X+M5MLT4tzOSVxqE yD7E0tvYlLw2EYV8edUccJPNCuJPBkOREutfOsl4OTf4iTNM/Z8GZCzm6C2F6aiQv0w1 nSQqYzWexLKTSBXNW2/ehpcxlEPm9MZxrui8DWf6D/75Ip/QNfQrOjBsFxAyGMKw88TQ 2Jvw== X-Gm-Message-State: AOAM533ua3HpksjJfjy0vT582a2+OFB2h7IlOpAPO7AiJuWdywJNAnai yhAXyhvIkPvc3pjL51RMG9U= X-Google-Smtp-Source: ABdhPJxrTF7rSBIwcHwftHtE6fM3EryH+r05717UKaYKXbdDiOKHMJSEgrIwkUi+j2gRwzeEE+zIJw== X-Received: by 2002:a17:906:5043:: with SMTP id e3mr988131ejk.260.1611593909412; Mon, 25 Jan 2021 08:58:29 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Cornelia Huck , Christian Borntraeger , Laurent Vivier , Thomas Huth , qemu-s390x@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3] configure: Only build s390-ccw BIOS when system emulation is built Date: Mon, 25 Jan 2021 17:58:26 +0100 Message-Id: <20210125165826.2894021-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) It is pointless to build the s390-ccw BIOS when only user-mode emulation is built. Only build it when s390 system mode emulation is selected. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- v3: Restrict to s390x host (thuth) v2: Restrict to s390x-softmmu target (thuth) --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index dcc5ea7d630..4751d3e352d 100755 --- a/configure +++ b/configure @@ -5372,8 +5372,14 @@ if { test "$cpu" =3D "i386" || test "$cpu" =3D "x86_= 64"; } && \ done fi =20 +s390_ccw_bios=3Dno +# Only build s390-ccw bios if we're targetting s390x system emulation +case $target_list in + *"s390x-softmmu"*) s390_ccw_bios=3Dyes + ;; +esac # Only build s390-ccw bios if we're on s390x and the compiler has -march= =3Dz900 -if test "$cpu" =3D "s390x" ; then +if test "$cpu" =3D "s390x" && test "$s390_ccw_bios" =3D yes; then write_c_skeleton if compile_prog "-march=3Dz900" ""; then roms=3D"$roms s390-ccw" --=20 2.26.2