[V1] framework/project_dpdk: add the extra_option to meson build

Message ID 1600305261-3063-1-git-send-email-lihongx.ma@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] framework/project_dpdk: add the extra_option to meson build |

Commit Message

Ma, LihongX Sept. 17, 2020, 1:14 a.m. UTC
  some build option have been defined in meson build file,
eg: max_ethports, so it can not been configured by c_args,
add the extra_options to build command to config these options.

Signed-off-by: LihongX Ma <lihongx.ma@intel.com>
---
 framework/project_dpdk.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Tu, Lijuan Sept. 23, 2020, 8:51 a.m. UTC | #1
> Subject: [dts] [PATCH V1] framework/project_dpdk: add the extra_option to
> meson build
> 
> some build option have been defined in meson build file,
> eg: max_ethports, so it can not been configured by c_args, add the
> extra_options to build command to config these options.
> 
> Signed-off-by: LihongX Ma <lihongx.ma@intel.com>

Applied
  

Patch

diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index c1b5eaf..a2efd8f 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -307,8 +307,8 @@  class DPDKdut(Dut):
         options_config = self.generator_build_option_string()
 
         self.send_expect("rm -rf " + target, "#")
-        out = self.send_expect("CC=%s meson --werror -Denable_kmods=True -Dlibdir=lib %s --default-library=%s %s" % (
-                        toolchain, options_config, default_library, target), "# ", build_time)
+        out = self.send_expect("CC=%s meson --werror -Denable_kmods=True %s -Dlibdir=lib %s --default-library=%s %s" % (
+                        toolchain, extra_options, options_config, default_library, target), "# ", build_time)
         assert ("FAILED" not in out), "meson setup failed ..."
 
         out = self.send_expect("ninja -C %s -j %d" % (target, self.number_of_cores), "# ", build_time)