test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/project_dpdk: add compile options when build 32-bit
@ 2020-09-17 17:14 LihongX Ma
  0 siblings, 0 replies; only message in thread
From: LihongX Ma @ 2020-09-17 17:14 UTC (permalink / raw)
  To: dts; +Cc: LihongX Ma

when build the 32-bit app, should add -m32 cflags to build options.

Signed-off-by: LihongX Ma <lihongx.ma@intel.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-18  0:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 17:14 [dts] [PATCH V1] framework/project_dpdk: add compile options when build 32-bit LihongX Ma

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git