doc: update recipe for static rdma-core in mlx guides
Checks
Commit Message
With recent versions of rdma-core, it becomes important to install,
so some non-standard compiler tricks are avoided.
While at it, disabling unneeded pyVerbs and man pages.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
doc/guides/nics/mlx4.rst | 3 ++-
doc/guides/platform/mlx5.rst | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
Comments
On Thu, Dec 08, 2022 at 12:16:46PM +0100, Thomas Monjalon wrote:
> With recent versions of rdma-core, it becomes important to install,
> so some non-standard compiler tricks are avoided.
>
I think this paragraph could do with a bit more explanation in it, e.g. to
clarify that this is (presumably) installing package vs working with it in
build directory.
/Bruce
@@ -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
@@ -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