* [dts] [PATCH V2] framework/project_dpdk: add compile options when build 32-bit
@ 2020-09-20 22:20 LihongX Ma
2020-09-21 6:35 ` Ling, WeiX
2020-09-23 9:00 ` Tu, Lijuan
0 siblings, 2 replies; 3+ messages in thread
From: LihongX Ma @ 2020-09-20 22:20 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..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=''):
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V2] framework/project_dpdk: add compile options when build 32-bit
2020-09-20 22:20 [dts] [PATCH V2] framework/project_dpdk: add compile options when build 32-bit LihongX Ma
@ 2020-09-21 6:35 ` Ling, WeiX
2020-09-23 9:00 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Ling, WeiX @ 2020-09-21 6:35 UTC (permalink / raw)
To: Ma, LihongX, dts; +Cc: Ma, LihongX
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
Tested-by: Ling, Wei <weix.ling@intel.com>
Regards,
Ling Wei
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of LihongX Ma
> Sent: Monday, September 21, 2020 06:21 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V2] framework/project_dpdk: add compile options when
> build 32-bit
[-- Attachment #2: TestPtpClient.log --]
[-- Type: application/octet-stream, Size: 265587 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V2] framework/project_dpdk: add compile options when build 32-bit
2020-09-20 22:20 [dts] [PATCH V2] framework/project_dpdk: add compile options when build 32-bit LihongX Ma
2020-09-21 6:35 ` Ling, WeiX
@ 2020-09-23 9:00 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-09-23 9:00 UTC (permalink / raw)
To: Ma, LihongX, dts; +Cc: Ma, LihongX
> Subject: [dts] [PATCH V2] framework/project_dpdk: add compile options when
> build 32-bit
>
> when build the 32-bit app, should add -m32 cflags to build options.
>
> Signed-off-by: LihongX Ma <lihongx.ma@intel.com>
Applied
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-23 9:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-20 22:20 [dts] [PATCH V2] framework/project_dpdk: add compile options when build 32-bit LihongX Ma
2020-09-21 6:35 ` Ling, WeiX
2020-09-23 9:00 ` Tu, Lijuan
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).