From: Haiyang Zhao <haiyangx.zhao@intel.com>
To: dts@dpdk.org
Cc: zhaoyan.chen@intel.com, Haiyang Zhao <haiyangx.zhao@intel.com>
Subject: [dts] [PATCH V1 4/5] framework/project_dpdk:set shared lib in config/common_base when use shared mode
Date: Wed, 15 Jan 2020 17:12:26 +0800 [thread overview]
Message-ID: <1579079547-52758-4-git-send-email-haiyangx.zhao@intel.com> (raw)
In-Reply-To: <1579079547-52758-1-git-send-email-haiyangx.zhao@intel.com>
*.when need to commpile DPDK with shared lib mode,
set it in config/common_base, only for host dut.
Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
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
next prev parent reply other threads:[~2020-01-15 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-15 9:12 [dts] [PATCH V1 1/5] framework/settings:add two global variable for shared library Haiyang Zhao
2020-01-15 9:12 ` [dts] [PATCH V1 2/5] framework/dts:add parameters parse " Haiyang Zhao
2020-01-15 9:12 ` [dts] [PATCH V1 3/5] framework/dut:add -d parameters in create_eal_parameters when use shared mode Haiyang Zhao
2020-01-15 9:12 ` Haiyang Zhao [this message]
2020-01-15 9:12 ` [dts] [PATCH V1 5/5] framework/virt_dut:optimize code Haiyang Zhao
2020-01-16 6:02 ` [dts] [PATCH V1 1/5] framework/settings:add two global variable for shared library Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1579079547-52758-4-git-send-email-haiyangx.zhao@intel.com \
--to=haiyangx.zhao@intel.com \
--cc=dts@dpdk.org \
--cc=zhaoyan.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).