From patchwork Mon Jun 15 22:22:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71605 X-Patchwork-Delegate: thomas@monjalon.net 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 354C4A04A3; Tue, 16 Jun 2020 00:22:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 35D154C90; Tue, 16 Jun 2020 00:22:45 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 107294C89 for ; Tue, 16 Jun 2020 00:22:43 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B36665C00E6; Mon, 15 Jun 2020 18:22:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 15 Jun 2020 18:22: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=VST1DNRxmLsl5 eOHMKZ4dw6cwc1pH83mfwEWZIf7NYY=; b=uddNxZA8qpK20SKjXpYlLdVzAwmda COsl3Fgp4rHIL3E70/PORIPhx30whOJVxZMtALrQD2DiM3Ss4FdesyyZ5Peox4C/ EbeQsKYB9/uf/DZfmJJQKaqU6Mcopr1TOLsCc57u5T8VdU+SDlt+KjstOUDaosKm +a9tV9LZv84T4VSLkgWNNcQrgQvsxG0RvbzrKkNhFrWi446uWXfPI5/tgLDpBmMR VFEvt3FxZMjK34bbHT6A4lQcnIvUuvu/1RULAxp58cOCffNNq34GiVZ2Tys/snyW oc+4Ttn6VfftbfkUXLtPdZ4lRYIOQ6asEkcY1pvxFaJS/utdmivMnhjQw== 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=VST1DNRxmLsl5eOHMKZ4dw6cwc1pH83mfwEWZIf7NYY=; b=aIwNo5xf dXzBx/PE5mmjhYIVRey6ikUWbbBpAo04GI2lwt9RxfE8PWwDMqWi+xBqisEdjEOs jDq/E+vaYCauubbVERRYXMFyhNT/FLeKxslx7mwG+m7gkcz/P4oWrg4Dys0a4Taw stXCSulm1cjpNz5V2tDcv+rI9s417EjMD9OAslaTr2liuHbCYBgKciH5nlqHlVzK /o2NvkdZ2zMWR66Q9P6nk6EzUvtZZRPIVMSuhbb5Y5fa6GrZQej5VedrGIUHDOHG 4y9dxCfLxlazDJVnWZpq8Xas5P3tp/3Gsv0Po34Wwnxq4KBprRaOdfEnv6hZsHbc KtN/PKmFhyav1g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiledguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrh 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 C9C573060FE7; Mon, 15 Jun 2020 18:22: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: Tue, 16 Jun 2020 00:22:33 +0200 Message-Id: <20200615222236.1894695-2-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200615222236.1894695-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> <20200615222236.1894695-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 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 Reviewed-by: David Christensen --- v2: fix ABI check config (thanks David) --- devtools/test-meson-builds.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 18b874fac5..bee55ec038 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 @@ -140,7 +148,7 @@ build () # fi rm -rf $abirefdir/build - config $abirefdir/src $abirefdir/build $* + config $abirefdir/src $abirefdir/build $cross $* compile $abirefdir/build install_target $abirefdir/build $abirefdir/$targetdir $srcdir/devtools/gen-abi.sh $abirefdir/$targetdir @@ -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 Mon Jun 15 22:22:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71606 X-Patchwork-Delegate: thomas@monjalon.net 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 322D2A04A3; Tue, 16 Jun 2020 00:22:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6385F54AE; Tue, 16 Jun 2020 00:22:47 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 4BA6D54AE for ; Tue, 16 Jun 2020 00:22:46 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 00DD65C011A; Mon, 15 Jun 2020 18:22:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 15 Jun 2020 18:22: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=nV/R9ML7PYEGD qWEKG9O+aoqLU6UuIAlku8aurnHYm8=; b=SCO4XAhjlllyg6nq9stK1j2q+skeA hBWVqrq377XW/90oNwSmME6X2dH3ya1AQxAQrbXLNb64vy/bmC7zx4XWDfq/Z0Me f+++Q3VIStXzjXAlxdDj98rYeCVZWLZpMh6WgVUiO/eLCbobxPPueJBsCgVpa7cA OTIZNs4Kxnfm80IXw3PThAdTSRANZuKa7IOBHTlkW+yg28QxbuCuTNx4QSbJtYEj 7Pu/fZ3jUeLIV9NfnsHF2A6Nelei+kh1MN6lfHewKGAapvtQR9xgdrh0UfqRI7mc bczm0bT3eg73niCPMHwj8DLricFgQKzfArJgT28CrphZnvqaOy1neS4rg== 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=nV/R9ML7PYEGDqWEKG9O+aoqLU6UuIAlku8aurnHYm8=; b=ab6s0gjJ ja7wc4SzA0TMq77wZIipoo3as27+qoUs8lAUqKlY2x+blYLZhJP25JCD1tvJD5u4 Fz83BHN//uVZYNJFWWpXlK539B6E8tueH414AKW8HkWFuKTvUB0d2mxWs/lfLzJJ oFINlWkZhg/QgCMoRbb2i3TpXCfNXWrlKF73ZO0jYkamRKRCKwv3xXfC0kFUOcoH qGSd+tpdWsOiN44u68SxJK5MVP36CsWekVG2p0QIEe+oze1hgYAnLqY7JPsWVyJC PbOzEsan2uv6sP2RdZjejYAxLPt3JOe1xtbCgmjEQB9hfiqN011mwjFsp5RWiiw4 5P0Zg74NxPzVIQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiledguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrh 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 221843061856; Mon, 15 Jun 2020 18:22: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: Tue, 16 Jun 2020 00:22:34 +0200 Message-Id: <20200615222236.1894695-3-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200615222236.1894695-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> <20200615222236.1894695-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 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 Reviewed-by: David Christensen --- 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 bee55ec038..9781eaf415 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 Mon Jun 15 22:22:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71607 X-Patchwork-Delegate: thomas@monjalon.net 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 5515BA04A3; Tue, 16 Jun 2020 00:23:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BD34DAAB7; Tue, 16 Jun 2020 00:22:49 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id E45565F69 for ; Tue, 16 Jun 2020 00:22:48 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 999765C00E6; Mon, 15 Jun 2020 18:22:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 15 Jun 2020 18:22: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=yA7UHP18PKn4f AYFw1AKcYoN8CXij2hw8QcOfzm0YTE=; b=akIMjZQrSyr31MxG3jsFgUjApMgnF U2+7zKrT9vz1wmHSbAK6PRPZAPkgdXMlGdfg8C3R0FCmMMkw/ogfpxvFURJ1lmQK rYO0x/nr2n4rrT/nO9Vf4OSJGMC9jIGYnK1RtycdAbpMGNSD5F/LW/M3z+keYTXs qPKhSSduXl3j1eIfbsCc4Wnd2BHtxIffnteIpzitfpCkDXpif7ZMg+xcfwYJfz8D u8vklEP2AtrmDtvBffAhWneyY1etNqAkaToRokzw07vFr3Egg8CbeAEifwkxe2tC SyPTE2tnYwWasrE23zahzcnrc7hmYBq4NCizxEDOCXvo6dpn5I7D4AowQ== 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=yA7UHP18PKn4fAYFw1AKcYoN8CXij2hw8QcOfzm0YTE=; b=CpzVUxeN WdVDwSUH6ooZP5N7UAaEgvbvrI8jFMBrhqfJW9Oxsj1BXoOluRnyO2sl5UgVCJI2 cqTpA7ZLqeooI/WBEJ4EHc4toefmu39DSuwlM3w5tx95uyu/M8T7tCe9J6hTwUhF 9PqD3OonEoRRek8D06nykxebRmXHUQeW/d7DzKTaj8qO060/zJ4CEof4yMBDCY/q jb7w1Dap5SWWL6yajrfCzVGAu/W8IvNCEghhmDjeIZWCaTsMghfBRObbUn1+zic8 CcnYTXTqGHxm4+phVmIze9MW85c0ncmRvq766peah2+dtQhBvLZdMq522XfpSqwU koEPcUTSkEThDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiledguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgepfeenucfrrghrrghmpehmrghilhhfrh 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 B79153060F09; Mon, 15 Jun 2020 18:22: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: Tue, 16 Jun 2020 00:22:35 +0200 Message-Id: <20200615222236.1894695-4-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200615222236.1894695-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> <20200615222236.1894695-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 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" Add cross-compilation support of a PPC target in the build test matrix. 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 9781eaf415..eaa215f13e 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 Mon Jun 15 22:22:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 71608 X-Patchwork-Delegate: thomas@monjalon.net 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 8B954A04A3; Tue, 16 Jun 2020 00:23:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 13ACB5F69; Tue, 16 Jun 2020 00:22:59 +0200 (CEST) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by dpdk.org (Postfix) with ESMTP id 4B8052B87 for ; Tue, 16 Jun 2020 00:22:57 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id BA730580373; Mon, 15 Jun 2020 18:22:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 15 Jun 2020 18:22:56 -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=ncohCQfbOQyDN aRXO9tm/lLFUR2a1hM86AimQZG+UKI=; b=fYo+xtGh8rDL4EE4nBzVkaXm+jby0 l8GtM7DkCkXQElLYJk7zNd7xCX7i8h3XgzOcsjG9+mALLcZtgNBUjoxtfSM8LbzW 1PVOhp7SM3gP9dRj36DX0MIHF5zCYXR/0OJgXCj2dUhrlNymawdPrsRRcNchzgcx SGIA2kC0WzVRuKjOF9f390G5P7zmtBb03Nn8CQBg18pwCB4/nzEOqRuCnpNEn7dR 9z7jSoFCBpjhu1UNQkVluB5X79lCffb28MfNZq2+A9+d14OxnQtLW3QULcd1Hi3p 2exIAnF5J8ZJzP+013ujExWPX4m99O4y3r+k/83i61SNhKn3DeN9iUGPQ== 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=ncohCQfbOQyDNaRXO9tm/lLFUR2a1hM86AimQZG+UKI=; b=Najbcwey khTDV6FiY8i7mLpf9AMiZ0LAOAUq5sj0p4iq3aoyRYxMjjODB7eBth3+BG43L2Qa 3+G7oCE2vFVYU3PtvqqB2sDZ8Z59ccaWXyetUARcfxF2XAMqoB3HBACyTFjOUX+c WNeqAUPh1JyUHuaHK63aFyj0tuxFNWmfzc6IcvlrbaEfohNr3ww8iXNYqwYin/0U MCRc+g8ng9s1fp6p0zOIRMQmbfFK/HLvJgnvUG+Zr6soktDkskpbS98r4yxPqRDw 8gP8lNPnukk3GTtnoGY8AbuJ6Xzl1pQv1crg2IdnHxK491F1Ccrs7g45y1q6k9r1 o4NpZTXS/gj7ig== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiledguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl 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 38D123060FE7; Mon, 15 Jun 2020 18:22:55 -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: Tue, 16 Jun 2020 00:22:36 +0200 Message-Id: <20200615222236.1894695-5-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200615222236.1894695-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> <20200615222236.1894695-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 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 overridden. 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 eaa215f13e..64a022ccf1 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 650483e3be..249e029c4e 100644 --- a/doc/guides/windows_gsg/build_dpdk.rst +++ b/doc/guides/windows_gsg/build_dpdk.rst @@ -109,5 +109,5 @@ 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