From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: alialnu@nvidia.com, bruce.richardson@intel.com,
Matan Azrad <matan@nvidia.com>,
Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Subject: [PATCH v2] doc: update recipe for static rdma-core in mlx guides
Date: Wed, 11 Jan 2023 09:45:27 +0100 [thread overview]
Message-ID: <20230111084527.1255775-1-thomas@monjalon.net> (raw)
In-Reply-To: <20221208111646.1487459-1-thomas@monjalon.net>
With recent versions of rdma-core, it becomes important to install
the library after its compilation.
If including rdma-core library from its build directory,
some non-standard compiler tricks are used.
When using an install directory for rdma-core, DPDK compilation is fine.
While at it, disabling unneeded pyVerbs and man pages.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
v2: reword commit log
---
doc/guides/nics/mlx4.rst | 3 ++-
doc/guides/platform/mlx5.rst | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/doc/guides/nics/mlx4.rst b/doc/guides/nics/mlx4.rst
index 924ce6f64b..c6279f51d0 100644
--- a/doc/guides/nics/mlx4.rst
+++ b/doc/guides/nics/mlx4.rst
@@ -209,8 +209,9 @@ Current RDMA core package and Linux kernel (recommended)
- Starting with rdma-core v21, static libraries can be built::
cd build
- CFLAGS=-fPIC cmake -DIN_PLACE=1 -DENABLE_STATIC=1 -GNinja ..
+ CFLAGS=-fPIC cmake -DENABLE_STATIC=1 -DNO_PYVERBS=1 -DNO_MAN_PAGES=1 -GNinja ..
ninja
+ ninja install
.. _`RDMA core installation documentation`: https://raw.githubusercontent.com/linux-rdma/rdma-core/master/README.md
diff --git a/doc/guides/platform/mlx5.rst b/doc/guides/platform/mlx5.rst
index 3cc1dd29e2..5784b9a87b 100644
--- a/doc/guides/platform/mlx5.rst
+++ b/doc/guides/platform/mlx5.rst
@@ -162,8 +162,9 @@ https://github.com/linux-rdma/rdma-core
It is possible to build rdma-core as static libraries starting with version 21::
cd build
- CFLAGS=-fPIC cmake -DIN_PLACE=1 -DENABLE_STATIC=1 -GNinja ..
+ CFLAGS=-fPIC cmake -DENABLE_STATIC=1 -DNO_PYVERBS=1 -DNO_MAN_PAGES=1 -GNinja ..
ninja
+ ninja install
NVIDIA MLNX_OFED/EN
--
2.39.0
next prev parent reply other threads:[~2023-01-11 8:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 11:16 [PATCH] " Thomas Monjalon
2022-12-08 11:33 ` Bruce Richardson
2023-01-11 8:45 ` Thomas Monjalon [this message]
2023-03-07 11:16 ` [PATCH v2] " Raslan Darawsheh
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=20230111084527.1255775-1-thomas@monjalon.net \
--to=thomas@monjalon.net \
--cc=alialnu@nvidia.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=matan@nvidia.com \
--cc=viacheslavo@nvidia.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).