From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 6EF9F231E for ; Wed, 29 Aug 2018 18:02:59 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2018 09:02:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,303,1531810800"; d="scan'208";a="69056229" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by orsmga008.jf.intel.com with ESMTP; 29 Aug 2018 09:02:57 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Wed, 29 Aug 2018 17:02:52 +0100 Message-Id: <20180829160252.7890-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] test-meson-builds: add 32-bit compilation 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: , X-List-Received-Date: Wed, 29 Aug 2018 16:02:59 -0000 Add in a cross-file to enable 32-bit compile tests as part of the test-meson-builds script. Signed-off-by: Bruce Richardson --- 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