test suite reviews and discussions
 help / color / mirror / Atom feed
From: LihongX Ma <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: LihongX Ma <lihongx.ma@intel.com>
Subject: [dts] [PATCH V2] framework/project_dpdk: add compile options when build 32-bit
Date: Mon, 21 Sep 2020 06:20:52 +0800	[thread overview]
Message-ID: <1600640452-24070-1-git-send-email-lihongx.ma@intel.com> (raw)

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


             reply	other threads:[~2020-09-21  5:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-20 22:20 LihongX Ma [this message]
2020-09-21  6:35 ` Ling, WeiX
2020-09-23  9:00 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1600640452-24070-1-git-send-email-lihongx.ma@intel.com \
    --to=lihongx.ma@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).