From nobody Thu Nov 28 12:58:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1672360770; cv=none; d=zohomail.com; s=zohoarc; b=nfbUjnM934ojitnIsa9vPEhvKClD7jexMHKb2JB7G+SfxukU3H6xRGyH+aES4aFFEQy7JvYP80OosjTOclkaweorB33cZZA7PeX0hEEdfmTAvgcZ+CgzAFutqD99ilvN0+cjq8EgZxMWbzTOlM0tfkoO6xTYCaA1/q9K7FqrwoE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672360770; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bG21ACZEJmqAqvR2IUlBNUbS+j6LozjIeSM4e70KM7I=; b=WOuOc8ENOkxkoRAD/aTRbAayt17yFSVBAFeeOYh+3hlVDnptHd3AAvWwkRNGa4DCLoAikQxWNzVSewBBiGqbagtFL0fv+GnqA1gvcw3FlW1WUykLq0fCL3E8Mnz3upiYA8hVUqIztf7Ym2qACas0yUFqedEgPk5RV8pkUYnmaYE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1672360770588862.0802312054071; Thu, 29 Dec 2022 16:39:30 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.469766.729201 (Exim 4.92) (envelope-from ) id 1pB3QM-0003L0-ME; Fri, 30 Dec 2022 00:39:02 +0000 Received: by outflank-mailman (output) from mailman id 469766.729201; Fri, 30 Dec 2022 00:39:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pB3QM-0003Jf-CH; Fri, 30 Dec 2022 00:39:02 +0000 Received: by outflank-mailman (input) for mailman id 469766; Fri, 30 Dec 2022 00:39:01 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pB3QL-0002si-AQ for xen-devel@lists.xenproject.org; Fri, 30 Dec 2022 00:39:01 +0000 Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com [216.71.145.153]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 5876866a-87da-11ed-91b6-6bf2151ebd3b; Fri, 30 Dec 2022 01:38:57 +0100 (CET) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 5876866a-87da-11ed-91b6-6bf2151ebd3b DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1672360737; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=3uvwBZDagvMzDqVYqDkSVs+tyCn4o/+n0Up/1fWJMJA=; b=RJ3IvMhoOmGh9XVXK50pNezjxw34z9Od4E3VRtlsBIOlBHEE8/qV2ajL Gt5gSsvxKR28g80xlyie807NdVpvjO4sqwQHPrW7WsNnVGHWzRwW7yYyx 1jNqqF6JFoakmAG91+Cd5fpHXsiKuh0aKuI1EEE5d8ciR10Z3tAqfp/7E o=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none X-SBRS: 4.0 X-MesageID: 90529779 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:0jPNZ6/m/rYZNxCqjT4jDrUDTX6TJUtcMsCJ2f8bNWPcYEJGY0x3z DYYDGnTOamMNmv9eIt0Oom/phgBvJLUnNFmHgNu+Cs8E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjUAOG6UKucYHsZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ire7kIx1BjOkGlA5AZnP6oa5AS2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDkkS/ /gBDT1cXyuhhuGM3beeZLh015sseZyD0IM34hmMzBncBPciB5vCX7/L9ZlT2zJYasJmRKiEI ZBDMHw2MUqGM0Yn1lQ/UfrSmM+BgHXlfiIeg1WSvactuEDYzRBr0airO93QEjCPbZQNwxzJ+ T2Xl4j/Khs6O+KR6iSCznmDpf7Bhz72ca0bSoTto5aGh3XMnzdOWXX6T2CTpPiyike6HdVFO UEQ0iMroe4580nDZt75Uh6joX/CvQMGXNFQEOoS5wSEy66S6AGcbkAUQzgEZNE4ucseQT0xy kTPj97vHSZosrCeVTSa7Lj8hTi7IyQSIEcJbDUISgZD6N7myKkolQ7GRNtnFK+zj/X2FCv2z jTMqzIx74j/luZSif/9pwqexWvx+N6ZFWbZ+zk7QEr55AdgQYP0VreK6Fvh8PNlAteBHwaO6 S1sd9el0MgCCpSElSqoSeoLHa206/vtDAAwkWKDDLF6qW3zpifLkZR4pWgneRw3appslSrBO he7hO9H2HNE0JJGh4dTapn5NcklxLOI+T/NBqGNNYomjnScmWa6EMBSiay4hTuFfKsEy/tX1 XKnnSGEUx4n5VxPlmbeegvk+eZDKtoC7W3SX4vn6B+szKCTYnWYIZ9cbgTUNbtpvP3V+lSOm zq6Cydt40wFONASnwGNqdJDRbz0BSNT6W/KRzx/KbfYf1sO9JAJAP7N27IxE7FYc1Buvr6Qp BmVAxYIoGcTcFWbcW1mnFg/MuKwNXu+xFpnVRER0aGAgSl+PNj+tPdEH3b1FJF+nNFeITdPZ 6FtU6297j5nE1wrJxx1gUHBkbFf IronPort-HdrOrdr: A9a23:TZcQsqpl7CA6urnqftXFdEIaV5oleYIsimQD101hICG9E/b1qy nKpp8mPHDP5wr5NEtPpTnjAsm9qALnlKKdiLN5Vd3OYOCMghrKEGgN1/qG/xTQXwH46+5Bxe NBXsFFebnN5IFB/KTH3DU= X-IronPort-AV: E=Sophos;i="5.96,285,1665460800"; d="scan'208";a="90529779" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Doug Goldstein , Stefano Stabellini , Anthony PERARD , Michal Orzel , Oleksii Kurochko Subject: [PATCH 3/6] CI: Only calculate ./configure args if needed Date: Fri, 30 Dec 2022 00:38:45 +0000 Message-ID: <20221230003848.3241-4-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20221230003848.3241-1-andrew.cooper3@citrix.com> References: <20221230003848.3241-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1672360774028000002 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is purely code motion of the cfgargs construction, into the case where= it is used. No practical change. Signed-off-by: Andrew Cooper Reviewed-by: Michal Orzel Reviewed-by: Stefano Stabellini --- CC: Doug Goldstein CC: Stefano Stabellini CC: Anthony PERARD CC: Michal Orzel CC: Oleksii Kurochko --- automation/scripts/build | 63 ++++++++++++++++++++++++--------------------= ---- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/automation/scripts/build b/automation/scripts/build index 8dee1cbbc251..f2301d08789d 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -39,37 +39,6 @@ if [[ "${XEN_TARGET_ARCH}" =3D "arm32" ]]; then hypervisor_only=3D"y" fi =20 -# build up our configure options -cfgargs=3D() -cfgargs+=3D("--enable-docs") - -if [[ "${CC}" =3D=3D "clang"* ]]; then - # SeaBIOS cannot be built with clang - cfgargs+=3D("--with-system-seabios=3D/usr/share/seabios/bios.bin") - # iPXE cannot be built with clang - cfgargs+=3D("--with-system-ipxe=3D/usr/lib/ipxe/ipxe.pxe") - # newlib cannot be built with clang so we cannot build stubdoms - cfgargs+=3D("--disable-stubdom") -fi - -if ! test -z "$(ldd /bin/ls|grep musl|head -1)"; then - # disable --disable-werror for QEMUU when building with MUSL - cfgargs+=3D("--with-extra-qemuu-configure-args=3D\"--disable-werror\"") - # SeaBIOS doesn't build on MUSL systems - cfgargs+=3D("--with-system-seabios=3D/bin/false") -fi - -# Qemu requires Python 3.5 or later, and ninja -if ! type python3 || python3 -c "import sys; res =3D sys.version_info < (3= , 5); exit(not(res))" \ - || ! type ninja; then - cfgargs+=3D("--with-system-qemu=3D/bin/false") -fi - -# SeaBIOS requires GCC 4.6 or later -if [[ "${CC}" =3D=3D "gcc" && `cc-ver` -lt 0x040600 ]]; then - cfgargs+=3D("--with-system-seabios=3D/bin/false") -fi - # Directory for the artefacts to be dumped into mkdir binaries =20 @@ -80,7 +49,37 @@ if [[ "${hypervisor_only}" =3D=3D "y" ]]; then # Preserve artefacts cp xen/xen binaries/xen else - # Full build + # Full build. Figure out our ./configure options + cfgargs=3D() + cfgargs+=3D("--enable-docs") + + if [[ "${CC}" =3D=3D "clang"* ]]; then + # SeaBIOS cannot be built with clang + cfgargs+=3D("--with-system-seabios=3D/usr/share/seabios/bios.bin") + # iPXE cannot be built with clang + cfgargs+=3D("--with-system-ipxe=3D/usr/lib/ipxe/ipxe.pxe") + # newlib cannot be built with clang so we cannot build stubdoms + cfgargs+=3D("--disable-stubdom") + fi + + if ! test -z "$(ldd /bin/ls|grep musl|head -1)"; then + # disable --disable-werror for QEMUU when building with MUSL + cfgargs+=3D("--with-extra-qemuu-configure-args=3D\"--disable-werro= r\"") + # SeaBIOS doesn't build on MUSL systems + cfgargs+=3D("--with-system-seabios=3D/bin/false") + fi + + # Qemu requires Python 3.5 or later, and ninja + if ! type python3 || python3 -c "import sys; res =3D sys.version_info = < (3, 5); exit(not(res))" \ + || ! type ninja; then + cfgargs+=3D("--with-system-qemu=3D/bin/false") + fi + + # SeaBIOS requires GCC 4.6 or later + if [[ "${CC}" =3D=3D "gcc" && `cc-ver` -lt 0x040600 ]]; then + cfgargs+=3D("--with-system-seabios=3D/bin/false") + fi + ./configure "${cfgargs[@]}" make -j$(nproc) dist =20 --=20 2.11.0