From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: Bruce Richardson <bruce.richardson@intel.com>
Subject: [dpdk-dev] [PATCH] test-meson-builds: add 32-bit compilation test
Date: Wed, 29 Aug 2018 17:02:52 +0100 [thread overview]
Message-ID: <20180829160252.7890-1-bruce.richardson@intel.com> (raw)
Add in a cross-file to enable 32-bit compile tests as part
of the test-meson-builds script.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
NOTE: For ease of use, it's recommended that meson 0.47 be used for
this testing. With earlier versions, it may be necessary to ensure that
the same development packages are installed for both 64-bit and 32-bit.
---
config/x86/i686_sse4_linuxapp_gcc | 18 ++++++++++++++++++
devtools/test-meson-builds.sh | 4 ++++
2 files changed, 22 insertions(+)
create mode 100644 config/x86/i686_sse4_linuxapp_gcc
diff --git a/config/x86/i686_sse4_linuxapp_gcc b/config/x86/i686_sse4_linuxapp_gcc
new file mode 100644
index 000000000..6bca8e336
--- /dev/null
+++ b/config/x86/i686_sse4_linuxapp_gcc
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+[binaries]
+c = 'gcc'
+cpp = 'cpp'
+ar = 'ar'
+strip = 'strip'
+
+[properties]
+c_args = ['-m32']
+c_link_args = ['-m32']
+
+[host_machine]
+system = 'linux'
+cpu_family = 'x86'
+cpu = 'nehalem'
+endian = 'little'
diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index 951c9067a..66723fe2b 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -44,6 +44,10 @@ done
# test compilation with minimal x86 instruction set
build build-x86-default -Dmachine=nehalem
+# test 32-bit x86 compilation
+# NOTE: meson >0.47 recommended for best results
+build build-i686 --cross-file config/x86/i686_sse4_linuxapp_gcc
+
# enable cross compilation if gcc cross-compiler is found
c=aarch64-linux-gnu-gcc
if command -v $c >/dev/null 2>&1 ; then
--
2.17.1
next reply other threads:[~2018-08-29 16:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-29 16:02 Bruce Richardson [this message]
2018-09-17 12:03 ` Thomas Monjalon
2018-09-17 12:54 ` Bruce Richardson
2018-09-17 13:38 ` Thomas Monjalon
2018-09-17 15:17 ` Bruce Richardson
2018-09-17 16:44 ` Thomas Monjalon
2018-09-17 19:34 ` Bruce Richardson
2018-09-17 19:58 ` Thomas Monjalon
2018-09-18 10:15 ` Bruce Richardson
2018-09-18 10:23 ` Thomas Monjalon
2018-10-11 11:54 ` Thomas Monjalon
2018-10-11 13:46 ` Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180829160252.7890-1-bruce.richardson@intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).