[V1] framework/project_dpdk: add compile options when build 32-bit
Commit Message
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(-)
@@ -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=''):