From nobody Sat Feb 7 07:30:52 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556296985; cv=none; d=zoho.com; s=zohoarc; b=kMjFGYbfraOOzLpsqo/BUmO0crLXwqqrgXYln2gGSSGuS47F865V2lAscOtAmGSk5ms39Vk1+HVdykaKwHSptvEPgVzFgAo2bQiOTzupMgcJz1Y1a+VZ21RMIotC7OzGwroVVROGzfBdpTz1gmLOpRQeeyaI/Jxj8zjKLpz2X5o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556296985; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=gR73GPxFEQ3uYULwodROF8e1i8llYnMEbntPfnF+n7M=; b=P+5+cb4YhdUacqEoedb7z0pgkVbcDRAO/ujIak2Qsqh2aNASEOJRqbENpqst2l4jYK07DXLkweBH/BAUbYw6N/8B9JQYR2U6KgEvEQx6Vd7BFlcj5dZVGOY8h+ywDbJ1Sh/q8TXNMyEhoNvPRcRIwZal0qJ1rUh/E6aGUBMDeDY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556296985563804.2131684826024; Fri, 26 Apr 2019 09:43:05 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hK3v1-0008RJ-AD; Fri, 26 Apr 2019 16:41:47 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hK3uz-0008Pa-Up for xen-devel@lists.xenproject.org; Fri, 26 Apr 2019 16:41:45 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 2bdee566-6842-11e9-916f-1b696d25bbd7; Fri, 26 Apr 2019 16:41:42 +0000 (UTC) X-Inumbo-ID: 2bdee566-6842-11e9-916f-1b696d25bbd7 X-IronPort-AV: E=Sophos;i="5.60,398,1549929600"; d="scan'208";a="84519759" From: Ian Jackson To: Date: Fri, 26 Apr 2019 17:40:00 +0100 Message-ID: <20190426164002.22381-14-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190426164002.22381-1-ian.jackson@eu.citrix.com> References: <20190426164002.22381-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 13/15] cross builds: mfi-common: Prepare for kernel cross building X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Introduce job_create_build_crossable, which takes a target->host architecture map in its arguments, and use it for build-kern, passing an empty architecture map. Overall functional change is only to add host_arch=3D$arch to the kernel build jobs, which has no ultimate effect because it's the same as the arch=3D$arch. (Difference in flight construction verified with standalone-generate-dump-flight-runvars.) Signed-off-by: Ian Jackson --- mfi-common | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/mfi-common b/mfi-common index dad03e39..7b5c894f 100644 --- a/mfi-common +++ b/mfi-common @@ -216,6 +216,32 @@ create_xen_build_job () { $extra_runvars } =20 +job_create_build_crossable () { + # job_create_build_crossable \ + # JOBNAME RECIPE ARCH \ + # [TARGARCH1 HOSTARCH1 [TARGARCH2 HOSTARCH2 ...]]] - \ + # [RUNVAR1 [RUNVAR2 ...]] + local name=3D$1; shift + local recipe=3D$1; shift + local arch=3D$1; shift + local match_arch=3D$arch + local host_arch=3D$arch + while true; do + local t_targarch=3D$1; shift; if [ x$t_targarch =3D x- ]; then break;= fi + local t_hostarch=3D$1; shift + if [ x$match_arch =3D x$t_targarch ]; then + host_arch=3D$t_hostarch + match_arch=3DX # prevents us mapping again, which would be a bit m= ad + fi + done + local build_hostflags + set_build_hostflags $host_arch + job_create_build $name $recipe \ + arch=3D$arch host_arch=3D$host_arch \ + host_hostflags=3D$build_hostflags \ + "$@" +} + set_build_hostflags () { # set_build_hostflags HOST_ARCH build_hostflags=3D"share-build-$suite-$1,arch-$1,suite-$suite,purpose-bu= ild" @@ -397,11 +423,11 @@ create_build_jobs () { revision_qemuu=3D$REVISION_QEMU_UPSTREAM fi =20 - job_create_build build-$arch-pvops build-kern = \ - arch=3D$arch kconfighow=3Dxen-enable-xen-config = \ + job_create_build_crossable build-$arch-pvops build-kern $arch = \ + - = \ + kconfighow=3Dxen-enable-xen-config = \ $RUNVARS $BUILD_RUNVARS $BUILD_LINUX_RUNVARS $arch_runvars= \ $hostos_runvars = \ - host_hostflags=3D$build_hostflags = \ $pvops_kernel $pvops_kconfig_overrides = \ ${TREEVCS_LINUX:+treevcs_linux=3D}${TREEVCS_LINUX} = \ tree_linuxfirmware=3D$TREE_LINUXFIRMWARE = \ --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel