lkml.org 
[lkml]   [2023]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] Documentation: bpf: Use sphinx-prompt
Date
Use Sphinx-prompt to generate a better rendered documentation that is
easier for copy-paste.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Documentation/bpf/libbpf/libbpf_build.rst | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/Documentation/bpf/libbpf/libbpf_build.rst b/Documentation/bpf/libbpf/libbpf_build.rst
index 8e8c23e8093d..2b94e5778702 100644
--- a/Documentation/bpf/libbpf/libbpf_build.rst
+++ b/Documentation/bpf/libbpf/libbpf_build.rst
@@ -13,25 +13,25 @@ setting NO_PKG_CONFIG=1 when calling make.

To build both static libbpf.a and shared libbpf.so:

-.. code-block:: bash
+.. prompt:: bash $

- $ cd src
- $ make
+ cd src
+ make

To build only static libbpf.a library in directory build/ and install them
together with libbpf headers in a staging directory root/:

-.. code-block:: bash
+.. prompt:: bash $

- $ cd src
- $ mkdir build root
- $ BUILD_STATIC_ONLY=y OBJDIR=build DESTDIR=root make install
+ cd src
+ mkdir build root
+ BUILD_STATIC_ONLY=y OBJDIR=build DESTDIR=root make install

To build both static libbpf.a and shared libbpf.so against a custom libelf
dependency installed in /build/root/ and install them together with libbpf
headers in a build directory /build/root/:

-.. code-block:: bash
+.. prompt:: bash $

- $ cd src
- $ PKG_CONFIG_PATH=/build/root/lib64/pkgconfig DESTDIR=/build/root make
\ No newline at end of file
+ cd src
+ PKG_CONFIG_PATH=/build/root/lib64/pkgconfig DESTDIR=/build/root make
--
2.40.0
\
 
 \ /
  Last update: 2023-08-24 20:22    [W:0.076 / U:23.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site