From nobody Tue Feb 10 00:23:19 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=1556707802; cv=none; d=zoho.com; s=zohoarc; b=UbceftjGuIUi9brjgZifU9WFEcNG5w8/z7XG4zcZVgq9yAmohiCQ9ztl/lHZo9VICrX0zh6SNiBrW/Sdf7KaegsdNEP52FqO6fnLKUrzVdSfqxf0rcf50HJUDIiqSz7mvYyP/cYCxzsAunIgp0LkRrtpLROBZos4lQ/5dePRd7o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556707802; 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=bKPDDWBOfwaZRS7znswzvbwEtO96qDck4nQRERy0C54=; b=QpU6GefHD1hKerWzEDkJkHNr3LZl69q3B3UX1GwHwNMl9Cefke4jboJYtO0enSXsN1lQZjRuB7skb+Y50j1Z0WQ4wibX4R/RsPEulc1JXHOdvFgxAhoenyvsMK6ybLkkyt1K4vdkmqrTyLuf29zCTliEOQOY/tEatwuHuc4MYLQ= 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 1556707802206481.27128687700815; Wed, 1 May 2019 03:50:02 -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 1hLmnI-0005b9-72; Wed, 01 May 2019 10:48:56 +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 1hLmnG-0005Yx-NM for xen-devel@lists.xenproject.org; Wed, 01 May 2019 10:48:54 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id b4bffa68-6bfe-11e9-98ed-5f79ff758e18; Wed, 01 May 2019 10:48:51 +0000 (UTC) X-Inumbo-ID: b4bffa68-6bfe-11e9-98ed-5f79ff758e18 X-IronPort-AV: E=Sophos;i="5.60,417,1549929600"; d="scan'208";a="84837305" From: Ian Jackson To: Date: Wed, 1 May 2019 11:48:35 +0100 Message-ID: <20190501104839.21621-12-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190501104839.21621-1-ian.jackson@eu.citrix.com> References: <20190501104839.21621-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH v2 11/15] cross builds: ts-kernel-build: Support cross target armhf 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: Stefano Stabellini , 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" Signed-off-by: Ian Jackson Acked-by: Julien Grall CC: Stefano Stabellini --- v2: Drop HOSTCC=3D setting --- ts-kernel-build | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ts-kernel-build b/ts-kernel-build index 72ca98a1..71eda48d 100755 --- a/ts-kernel-build +++ b/ts-kernel-build @@ -21,6 +21,7 @@ BEGIN { unshift @INC, qw(.); } use Osstest; use Osstest::TestSupport; use Osstest::BuildSupport; +use Carp; =20 tsreadconfig(); =20 @@ -48,9 +49,24 @@ my $parms =3D $archparms->{ $r{arch} }; =20 sub enable_xen_config (); =20 +our $arch_envvars =3D ''; + sub cmd ($$) { my ($timeout, $script) =3D @_; - target_cmd_build($ho, $timeout, $builddir, $script); + target_cmd_build($ho, $timeout, $builddir, $arch_envvars.$script); +} + +sub checkarch () { + return if $r{arch} eq $ho->{Arch}; + my $cc =3D 'gcc'; + if ($r{arch} eq 'armhf') { + target_install_packages($ho, "crossbuild-essential-$r{arch}"); + $arch_envvars =3D <