From patchwork Sun Jun 14 22:57:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71515 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5B425A0093; Mon, 15 Jun 2020 00:58:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88A154CA6; Mon, 15 Jun 2020 00:58:44 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id AF7B74C90 for ; Mon, 15 Jun 2020 00:58:43 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id EBC335C00C6; Sun, 14 Jun 2020 18:58:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 14 Jun 2020 18:58:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=eBbSeJGh0psHY kZLFlA1afguXVBE2uk1mkxh7nV7mew=; b=AcFpYdVj5ikPadBGuo4IAPH83VPJx 2dShpzedF4i5w+FUOE0MRLXUMtap1CZmBTjBA57vwIy5Eza+h6sam76urWo4gf6g 0XwBF9Z8KU4L2eMmMMwRSHlVHiHSoGAi5YTQemHadvcdqG44GpXli9yxX33c/BLi VETpxXmCVVng6AdQIiPRFlWeVx5BZqT7yrD0Gagp92MPypgq7GKFrSEgl8xk+5/I xZZbqNMHSrCgC5EXUqRwYPkdmigDm6snuXGB5qYH49LcGvE8XhVXjWtBK3ylcYED GK2rMRkMJXF+ZI9EMF+aIIS6Raw0WJZgueugz01tqQH5Jnow0dtnhIXXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=eBbSeJGh0psHYkZLFlA1afguXVBE2uk1mkxh7nV7mew=; b=DNS63ulO 9FTsim5BYA3iM8rdbxEZTHmYvNa/QN0v6S2TDObdwJG4r2/VNQkcFeJd2TD7k/ME LDXVlsVgnQGLxcb4PZ+WqZinlwhh48VK3+u7pPuom/8TRAQHKUytfQypxZpxQISS Y6+dPwhPogxYGBpBm+dkhzypBEFfXb/zDX6etk30QraqmlMdbE6yVTMLu825aecY Yu0ljFqHQVINQkzxSRCG1dmTnQRsbcsi5JbV81uaBnnAuLh4lZSv876u85ju4k0Z eA5MzldC5IKT4X97yEs/8DpPRaxjobWWO26L3A2HBZ88o+y3IPs/GcsK6Xuf6IPD yyFk86JGVi3RMw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeijedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 14BA93280059; Sun, 14 Jun 2020 18:58:41 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, drc@linux.vnet.ibm.com, dmitry.kozliuk@gmail.com Date: Mon, 15 Jun 2020 00:57:44 +0200 Message-Id: <20200614225747.3839569-2-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200614225747.3839569-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 1/4] devtools: shrink cross-compilation test definition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Each cross-compilation case needs to define the target compiler and the meson cross file. Given the compiler is already defined in the cross file, the latter is enough. The function "build" is changed to accept a cross file alternatively to the compiler name. In the case of a file (detected if readable), the compiler is extracted with sed and tr, and the option --cross-file is automatically added. Signed-off-by: Thomas Monjalon --- devtools/test-meson-builds.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 18b874fac5..602167e43a 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -117,16 +117,24 @@ install_target () # fi } -build () # +build () # { targetdir=$1 shift - targetcc=$1 + crossfile= + [ -r $1 ] && crossfile=$1 || targetcc=$1 shift # skip build if compiler not available command -v ${CC##* } >/dev/null 2>&1 || return 0 + if [ -n "$crossfile" ] ; then + cross="--cross-file $crossfile" + targetcc=$(sed -n 's,^c[[:space:]]*=[[:space:]]*,,p' \ + $crossfile | tr -d "'" | tr -d '"') + else + cross= + fi load_env $targetcc || return 0 - config $srcdir $builds_dir/$targetdir --werror $* + config $srcdir $builds_dir/$targetdir $cross --werror $* compile $builds_dir/$targetdir if [ -n "$DPDK_ABI_REF_VERSION" ]; then abirefdir=${DPDK_ABI_REF_DIR:-reference}/$DPDK_ABI_REF_VERSION @@ -186,17 +194,15 @@ if [ "$ok" = "false" ] ; then fi build build-x86-default cc -Dlibdir=lib -Dmachine=$default_machine $use_shared -c=aarch64-linux-gnu-gcc # generic armv8a with clang as host compiler +f=$srcdir/config/arm/arm64_armv8_linux_gcc export CC="clang" -build build-arm64-host-clang $c $use_shared \ - --cross-file $srcdir/config/arm/arm64_armv8_linux_gcc +build build-arm64-host-clang $f $use_shared unset CC -# all gcc/arm configurations +# some gcc/arm configurations for f in $srcdir/config/arm/arm64_[bdo]*gcc ; do export CC="$CCACHE gcc" - build build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) $c \ - $use_shared --cross-file $f + build build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) $f $use_shared unset CC done From patchwork Sun Jun 14 22:57:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71516 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5B1E7A0093; Mon, 15 Jun 2020 00:58:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B0C9C5681; Mon, 15 Jun 2020 00:58:47 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 67E925681 for ; Mon, 15 Jun 2020 00:58:46 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0D6DE5C00DA; Sun, 14 Jun 2020 18:58:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 14 Jun 2020 18:58:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=oYdAH2wbkycMY WIrnZuaxbSxPAzOndA5d9R3rWJGKec=; b=naSG3ytkF8rfRLN8xzOez/GRETEac MsPEUYq6owghw41pQOKjL+vquGQaBmBk7ikJMBZeYMBT/WuWp/P+JMqubLO4dIG3 fjMHaawnhwjzUMkxCXOUwPcRBADnDhuhgES82OctRm0mR1ThKiIj+14dZv8VccZt DoGfnpdbUz0l6i4ITnjGYpNf/dzXc8E7c/MXTig2UPAl9NIxh78gkwbIvysehM21 /NeutNJbgsOCbT6rJcWZiboEn2+u0InH/4o2E5XqJrGNlhwHph9cLptI19o7uae5 tjBHc+ouIxJIH5OptCZxE4W9zIQjGXOov/Qj+uC9Xg6S1bBYGTXEiJKbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=oYdAH2wbkycMYWIrnZuaxbSxPAzOndA5d9R3rWJGKec=; b=bv0i/fXZ OtUdo1X/M5TKuOgtvptIjSlO3gN0xYTTeOEw1iIk6Y0rz9T2qaCTIIJurtDTODsG RW5+AmbMQyE1gF138bngXZlKkC0O9CcfvAtKO1FY4u2N9EUkHIXLMU5B3xjc1AXw qFA3yP0IOwMUb+HAoljZWFfrMwTGKpQOwBHPsA3NcQb+XjQyYVCqSb79/3cMBI8E jsygKDpfmLkjZSZFwzOl1nhmcY245j0UoQQWmhFgx6w8VxR/vdUWFNbDjAb8/S+D JWQeJQqtJvkScEw6dDqX3EoOqc9m90vNMQ8RhdAQKPddd8VY5P8vG6VU23M362i3 +kSmBbdMBKpJkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeijedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 2D375328005D; Sun, 14 Jun 2020 18:58:45 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, drc@linux.vnet.ibm.com, dmitry.kozliuk@gmail.com Date: Mon, 15 Jun 2020 00:57:45 +0200 Message-Id: <20200614225747.3839569-3-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200614225747.3839569-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 2/4] devtools: allow non-standard toolchain in meson test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" If a compiler is not found in $PATH, the compilation test is skipped. In some cases, the compiler could be found after extending $PATH in an environment configuration script (called by load-devel-config). The decision to skip is deferred to a later stage, after loading the configuration script. In such case, the variable DPDK_TARGET, used by the configuration script as input, is the compiler name. Signed-off-by: Thomas Monjalon --- devtools/test-meson-builds.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 602167e43a..1d80a029aa 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -52,9 +52,15 @@ load_env () # export CFLAGS=$default_cflags export LDFLAGS=$default_ldflags unset DPDK_MESON_OPTIONS - command -v $targetcc >/dev/null 2>&1 || return 1 - DPDK_TARGET=$($targetcc -v 2>&1 | sed -n 's,^Target: ,,p') + if command -v $targetcc >/dev/null 2>&1 ; then + DPDK_TARGET=$($targetcc -v 2>&1 | sed -n 's,^Target: ,,p') + else # toolchain not yet in PATH: its name should be enough + DPDK_TARGET=$targetcc + fi + # config input: $DPDK_TARGET . $srcdir/devtools/load-devel-config + # config output: $DPDK_MESON_OPTIONS, $PATH, $PKG_CONFIG_PATH, etc + command -v $targetcc >/dev/null 2>&1 || return 1 } config () # From patchwork Sun Jun 14 22:57:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71517 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 137D3A0093; Mon, 15 Jun 2020 00:59:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 084A35F2F; Mon, 15 Jun 2020 00:58:50 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 81BAF5F2F for ; Mon, 15 Jun 2020 00:58:48 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 2A7CF5C00E3; Sun, 14 Jun 2020 18:58:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 14 Jun 2020 18:58:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=aDgAxW/l0fcTa Ku3te/51vvNssPDh90vnby0K65nylo=; b=q3CvALGlcOvT8eZ6m53AGPRWa7pO9 ZrHk18xgzM+HE6b9nZYjnLrr3D/1RgXPmYam7n9Fy72LE2wcYaqLiZq7/fUq9S7B 5Xct9QL0YlGNnZMoGpZjlb6H8J/oR2bFenh5zHRHklx9IXi0KC5qCfELRmwyvBT+ gQjwqMFp+eKTShXhjNG7eGQnKH22NDuJPRJsWZ5Cdf5uAtu1FpVaqgxKWpIGbxIi JaCeTnJIs/ct6rIB0n46aLTCj7PtYpm5PtyZD5tQiuLV/uhf/TdaYXKYey7+sKFq yoo7skmeOeG0DczcrAF8zgcVNGY1lMltfH9Jao3fK5m3KVCEvoPmlIPBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=aDgAxW/l0fcTaKu3te/51vvNssPDh90vnby0K65nylo=; b=HmwFVa/+ zfAqH85gat/xccuS+Ugu6WhoDLp5BAHlRJ5j0BwJ7kHn5jQzxamHYmTY75naBPzJ tNq3ctJbyzIDTMQX2UcUp7XPJXXoRsZOlMI/zJ6FHsyKLihkID1Vr6Nkp3QoL57F IOclxScDtLOdObn/qcYrI6OR5peCfFa16mSgkOKY6ZYtaGV4cfQsPJx9T5EgD/RO Py5BJL9cbaIc8r6O9dpQumaJqTDokjFeN1ogG95aYGpWWHZLabF5WrwpsmJQH1qO NZu+ev1FUWa73Nxo7/mzUnhNBdNx9bWO9wySL+Y/lJweBPyqFBqljwmvXKH5G/ez NgtCw9U1xUkE5w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeijedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 4B6FE328005D; Sun, 14 Jun 2020 18:58:47 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, drc@linux.vnet.ibm.com, dmitry.kozliuk@gmail.com Date: Mon, 15 Jun 2020 00:57:46 +0200 Message-Id: <20200614225747.3839569-4-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200614225747.3839569-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 3/4] devtools: add ppc64 in meson build test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The CPU is defined as Power8, running as little endian. Signed-off-by: Thomas Monjalon Reviewed-by: David Christensen --- config/ppc/ppc64le-power8-linux-gcc | 11 +++++++++++ devtools/test-meson-builds.sh | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 config/ppc/ppc64le-power8-linux-gcc diff --git a/config/ppc/ppc64le-power8-linux-gcc b/config/ppc/ppc64le-power8-linux-gcc new file mode 100644 index 0000000000..51f7ceebf3 --- /dev/null +++ b/config/ppc/ppc64le-power8-linux-gcc @@ -0,0 +1,11 @@ +[binaries] +c = 'powerpc64le-linux-gcc' +cpp = 'powerpc64le-linux-cpp' +ar = 'powerpc64le-linux-gcc-ar' +strip = 'powerpc64le-linux-strip' + +[host_machine] +system = 'linux' +cpu_family = 'ppc64' +cpu = 'power8' +endian = 'little' diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 1d80a029aa..1cde17a2e5 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -212,6 +212,11 @@ for f in $srcdir/config/arm/arm64_[bdo]*gcc ; do unset CC done +# ppc configurations +for f in $srcdir/config/ppc/ppc* ; do + build build-$(basename $f | cut -d'-' -f-2) $f $use_shared +done + # Test installation of the x86-default target, to be used for checking # the sample apps build using the pkg-config file for cflags and libs build_path=$(readlink -f $builds_dir/build-x86-default) From patchwork Sun Jun 14 22:57:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71518 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF364A0093; Mon, 15 Jun 2020 00:59:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 446A854AE; Mon, 15 Jun 2020 00:59:00 +0200 (CEST) Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by dpdk.org (Postfix) with ESMTP id A99251150 for ; Mon, 15 Jun 2020 00:58:58 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 15424580130; Sun, 14 Jun 2020 18:58:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 14 Jun 2020 18:58:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=SCczyrnYlpVvI 2de+EC9gFw7t+9eQJ5OS3WcVylhvE8=; b=vMjiLIOvPhLJJuPSM7kZHOczdsF07 HaRxVhtKfW/NEEZonPw0pTFdYS74ybvu0Vp5txGPkvvC/gPRguuuTeUs3QCAmxRG oCcFU6eduYizkLDHgdifC6NGuRkj3QcGI2bRcgxJCm/nPqeDTsL8YKHZkMCDktJi zxKQr88n754pbUbMl8atmSXcf9ZipH8IFxRGuL/bpOsK7cbOPIgEMaEmQW4KPGTZ SQS9/VP0GjycQad0XHQ1Wff1LtFiUmuUciNvXABQfZYvhEGsYfKK0iRKip56utNQ WG7Mqxp1eoxVm0d5Y8wHQX2LtgManstsj1gSG1et9MJjEwcKYctf+FNgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=SCczyrnYlpVvI2de+EC9gFw7t+9eQJ5OS3WcVylhvE8=; b=YnNuM4np lV106iPLFL+W2dwEzzYrJvNMZ5+LSLtuRVzwRSY5aZFfg6qK7Q5VlhXQIVxbB25R V83k7FtWSx3HhAk8GPFlKSB64xMKUa29ZfPIsigNxwGQklvpb0LI/XPh8w6BXaZ3 39ST8QHv/O/106rDNsr3FXnXIeLdVkPw5saT2m2+OvHPWvBtIe07aios+q/jSJY8 J3XVVbnqGeH0v3HpNALqrQvASSP0ZyztZKCKBKJ6IchZgSXIT6mzTuoJMLUdtGD8 FPpV2bfnUBrziTvpCQDC6L6084Ty8VPkL+SdcC3qpEhAF/AG4l4E/4QAK2fjMBN7 bu+4TauOSGUQ+g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeijedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpeefnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 75C06328005A; Sun, 14 Jun 2020 18:58:56 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, drc@linux.vnet.ibm.com, dmitry.kozliuk@gmail.com, Harini Ramakrishnan , Omar Cardona , Pallavi Kadam , Ranjit Menon , John McNamara , Marko Kovacevic Date: Mon, 15 Jun 2020 00:57:47 +0200 Message-Id: <20200614225747.3839569-5-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200614225747.3839569-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 4/4] devtools: add Windows cross-build test with MinGW X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The Meson cross file is renamed from meson_mingw.txt to cross-mingw, and is added to test-meson-builds.sh. The only example supported on Windows so far is "helloworld", that's why the default list of examples is overriden. Signed-off-by: Thomas Monjalon --- config/x86/{meson_mingw.txt => cross-mingw} | 0 devtools/test-meson-builds.sh | 3 +++ doc/guides/windows_gsg/build_dpdk.rst | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) rename config/x86/{meson_mingw.txt => cross-mingw} (100%) diff --git a/config/x86/meson_mingw.txt b/config/x86/cross-mingw similarity index 100% rename from config/x86/meson_mingw.txt rename to config/x86/cross-mingw diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 1cde17a2e5..52635c73d1 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -200,6 +200,9 @@ if [ "$ok" = "false" ] ; then fi build build-x86-default cc -Dlibdir=lib -Dmachine=$default_machine $use_shared +# x86 MinGW +build build-x86-mingw $srcdir/config/x86/cross-mingw -Dexamples=helloworld + # generic armv8a with clang as host compiler f=$srcdir/config/arm/arm64_armv8_linux_gcc export CC="clang" diff --git a/doc/guides/windows_gsg/build_dpdk.rst b/doc/guides/windows_gsg/build_dpdk.rst index d46e84e3fb..d517f08f0d 100644 --- a/doc/guides/windows_gsg/build_dpdk.rst +++ b/doc/guides/windows_gsg/build_dpdk.rst @@ -109,7 +109,7 @@ Depending on the distribution, paths in this file may need adjustments. .. code-block:: console - meson --cross-file config/x86/meson_mingw.txt -Dexamples=helloworld build + meson --cross-file config/x86/cross-mingw -Dexamples=helloworld build ninja -C build