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 763D2A0513; Wed, 15 Jan 2020 10:07:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F37671C0C0; Wed, 15 Jan 2020 10:06:59 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 556021BFC3 for ; Wed, 15 Jan 2020 10:06:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 01:06:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,322,1574150400"; d="scan'208";a="242810289" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 15 Jan 2020 01:06:57 -0800 From: Haiyang Zhao To: dts@dpdk.org Cc: zhaoyan.chen@intel.com, Haiyang Zhao Date: Wed, 15 Jan 2020 17:12:26 +0800 Message-Id: <1579079547-52758-4-git-send-email-haiyangx.zhao@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1579079547-52758-1-git-send-email-haiyangx.zhao@intel.com> References: <1579079547-52758-1-git-send-email-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 4/5] framework/project_dpdk:set shared lib in config/common_base when use shared mode 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" *.when need to commpile DPDK with shared lib mode, set it in config/common_base, only for host dut. Signed-off-by: Haiyang Zhao --- framework/project_dpdk.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 7ec3aad..7030abb 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -34,6 +34,7 @@ import re from settings import NICS, load_global_setting, accepted_nic from settings import DPDK_RXMODE_SETTING, HOST_DRIVER_SETTING, HOST_DRIVER_MODE_SETTING +from settings import HOST_SHARED_LIB_SETTING, HOST_SHARED_LIB_PATH from ssh_connection import SSHConnection from crb import Crb from dut import Dut @@ -207,6 +208,11 @@ class DPDKdut(Dut): """ Build DPDK source code with specified target. """ + use_shared_lib = load_global_setting(HOST_SHARED_LIB_SETTING) + shared_lib_path = load_global_setting(HOST_SHARED_LIB_PATH) + if use_shared_lib == 'true' and 'Virt' not in str(self): + self.send_expect("sed -i 's/CONFIG_RTE_BUILD_SHARED_LIB=n/CONFIG_RTE_BUILD_SHARED_LIB=y/g' " + "config/common_base", '#') build_install_dpdk = getattr(self, 'build_install_dpdk_%s' % self.get_os_type()) build_install_dpdk(target, extra_options) -- 1.8.3.1