From patchwork Sun Sep 20 22:20:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ma, LihongX" X-Patchwork-Id: 78139 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 2AE7EA04B7; Mon, 21 Sep 2020 07:54:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DEA11D941; Mon, 21 Sep 2020 07:54:25 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id A9C1A1D8D3 for ; Mon, 21 Sep 2020 07:54:23 +0200 (CEST) IronPort-SDR: +zqlQ+HpzYfhRU8Xee5iI073Mk9HUFA3NsS6uJP0bXOAZvnrIxvBg29q6aqO+V6rwoDMaIdzf3 Ao363Ry12v3w== X-IronPort-AV: E=McAfee;i="6000,8403,9750"; a="139812676" X-IronPort-AV: E=Sophos;i="5.77,285,1596524400"; d="scan'208";a="139812676" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2020 22:54:22 -0700 IronPort-SDR: 8oYQ+CgVbL2R4giA9lr55C/FAVeanq39XNdQmi7w49WUnW/PwnGzoFVeEjBHvWy+eYE4oEpPal EHXugHK3U/0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,285,1596524400"; d="scan'208";a="289747349" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by fmsmga007.fm.intel.com with ESMTP; 20 Sep 2020 22:54:21 -0700 From: LihongX Ma To: dts@dpdk.org Cc: LihongX Ma Date: Mon, 21 Sep 2020 06:20:52 +0800 Message-Id: <1600640452-24070-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V2] 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 Tested-by: Ling, Wei --- 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..dcf869e 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=''):