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

LihongX Ma lihongx.ma at intel.com
Thu Sep 17 03:14:21 CEST 2020


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 at intel.com>
---
 framework/project_dpdk.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)
-- 
2.7.4



More information about the dts mailing list