From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1106CA00BE; Tue, 7 Jul 2020 12:16:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0861C1DD9B; Tue, 7 Jul 2020 12:16:54 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 467641DDDB for ; Tue, 7 Jul 2020 12:16:52 +0200 (CEST) IronPort-SDR: 1B6jZFYUZOOvmE4ubfvNQKnLyeNOz1UBvoegwLWgJeMnkFtQvKu4oRCDN7wbS4zgT6fLKVRkuP 7XSzz4mqkIHg== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="127160982" X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="127160982" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 03:16:51 -0700 IronPort-SDR: 4j66UapbZUq0/U0W47kc+GuTfCzyNqD9OEMPihXzIzWJNwsXPh0HjSA+diyW1s8r9bt8iE/70T /pjRZiv6wBqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="457051258" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by orsmga005.jf.intel.com with ESMTP; 07 Jul 2020 03:16:50 -0700 From: lihong To: dts@dpdk.org Cc: zhaoyan.chen@intel.com, lihong Date: Tue, 7 Jul 2020 10:45:00 +0800 Message-Id: <1594089903-26285-5-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594089903-26285-1-git-send-email-lihongx.ma@intel.com> References: <1594089903-26285-1-git-send-email-lihongx.ma@intel.com> Subject: [dts] [PATCH V1 4/7] framework: read and save the build_type from execution.cfg X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: lihong --- 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