[dts] [PATCH V1 4/7] framework: read and save the build_type from execution.cfg

lihong lihongx.ma at intel.com
Tue Jul 7 04:45:00 CEST 2020


Signed-off-by: lihong <lihongx.ma at intel.com>
---
 framework/dts.py      | 7 +++++++
 framework/settings.py | 1 +
 2 files changed, 8 insertions(+)

diff --git a/framework/dts.py b/framework/dts.py
index d6c4fe5..2c0c86a 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -88,6 +88,13 @@ def dts_parse_param(config, section):
 
     parameters = config.get(section, 'parameters').split(':')
     drivername = config.get(section, 'drivername').split('=')[-1]
+    # get the build method, default is makefile
+    try:
+        buildtype = config.get(section, 'build_type').split('=')[-1]
+    except:
+        buildtype = 'makefile'
+    buildtype = buildtype.lower()
+    settings.save_global_setting(settings.HOST_BUILD_TYPE_SETTING, buildtype)
 
     driver = drivername.split(':')
     if len(driver) == 2:
diff --git a/framework/settings.py b/framework/settings.py
index bb23077..f91452d 100644
--- a/framework/settings.py
+++ b/framework/settings.py
@@ -249,6 +249,7 @@ PERF_SETTING = "DTS_PERF_ONLY"
 FUNC_SETTING = "DTS_FUNC_ONLY"
 HOST_DRIVER_SETTING = "DTS_HOST_DRIVER"
 HOST_DRIVER_MODE_SETTING = "DTS_HOST_DRIVER_MODE"
+HOST_BUILD_TYPE_SETTING = "DTS_HOST_BUILD_TYPE"
 HOST_NIC_SETTING = "DTS_HOST_NIC"
 HOST_SHARED_LIB_SETTING = "DTS_HOST_SHARED_LIB"
 HOST_SHARED_LIB_PATH = "DTS_HOST_SHARED_LIB_PATH"
-- 
2.7.4



More information about the dts mailing list