From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BF8CBA04BC; Fri, 18 Sep 2020 02:47:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8698F1D5B0; Fri, 18 Sep 2020 02:47:48 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 3615B2C58 for ; Fri, 18 Sep 2020 02:47:46 +0200 (CEST) IronPort-SDR: HP4zPMo1HsHQUjGykvgZNyXGXCWEs7CEqkR6sfHEUhAkamBepLDVl3Y/SpZ/v60qpJ09z7fzeN HCHDBG6EO13w== X-IronPort-AV: E=McAfee;i="6000,8403,9747"; a="147570059" X-IronPort-AV: E=Sophos;i="5.77,272,1596524400"; d="scan'208";a="147570059" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 17:47:40 -0700 IronPort-SDR: 4MhZBPSYO+SfvTaPawFKOiKBT6dq0R+5gvjsv8uibl74CGz32m6UaNhlGcqZBwyp1rTRMTN0CS zz9Q/p4jkMkQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,272,1596524400"; d="scan'208";a="289167531" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by fmsmga008.fm.intel.com with ESMTP; 17 Sep 2020 17:47:39 -0700 From: LihongX Ma To: dts@dpdk.org Cc: LihongX Ma Date: Fri, 18 Sep 2020 01:14:12 +0800 Message-Id: <1600362852-6508-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] framework/project_dpdk: add compile options when build 32-bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" when build the 32-bit app, should add -m32 cflags to build options. Signed-off-by: LihongX Ma --- framework/project_dpdk.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index c1b5eaf..ddfb2ea 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -254,7 +254,11 @@ class DPDKdut(Dut): if len(params) == 0: return '' else: - args = '-Dc_args=' + '\'%s\'' % ' '.join(params) + # if will compile 32bit app, should add the parameter of -m32 + if 'i686' in self.target: + args = '-Dc_args=' + '-m32 ' + '\'%s\'' % ' '.join(params) + else: + args = '-Dc_args=' + '\'%s\'' % ' '.join(params) return args def build_install_dpdk(self, target, extra_options=''): -- 2.7.4