diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2017-05-16 14:51:32 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2017-05-16 16:20:45 +0200 |
commit | 7595afa4d30097c1177b69257118d8ad89a539be (patch) | |
tree | 4bfeadc905c977e45e54a90c42330553b8942e4e /doc/guides/prog_guide/extend_dpdk.rst | |
parent | ce3d555e43e3795b5d9507fcfc76b7a0a92fd0d6 (diff) |
Imported Upstream version 17.05
Change-Id: Id1e419c5a214e4a18739663b91f0f9a549f1fdc6
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'doc/guides/prog_guide/extend_dpdk.rst')
-rw-r--r-- | doc/guides/prog_guide/extend_dpdk.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/guides/prog_guide/extend_dpdk.rst b/doc/guides/prog_guide/extend_dpdk.rst index 51f0b5c2..73d81999 100644 --- a/doc/guides/prog_guide/extend_dpdk.rst +++ b/doc/guides/prog_guide/extend_dpdk.rst @@ -39,14 +39,14 @@ Example: Adding a New Library libfoo To add a new library to the DPDK, proceed as follows: -#. Add a new configuration option: +#. Add a new configuration option: .. code-block:: bash for f in config/\*; do \ echo CONFIG_RTE_LIBFOO=y >> $f; done -#. Create a new directory with sources: +#. Create a new directory with sources: .. code-block:: console @@ -54,7 +54,7 @@ To add a new library to the DPDK, proceed as follows: touch ${RTE_SDK}/lib/libfoo/foo.c touch ${RTE_SDK}/lib/libfoo/foo.h -#. Add a foo() function in libfoo. +#. Add a foo() function in libfoo. Definition is in foo.c: @@ -71,7 +71,7 @@ To add a new library to the DPDK, proceed as follows: extern void foo(void); -#. Update lib/Makefile: +#. Update lib/Makefile: .. code-block:: console @@ -79,7 +79,7 @@ To add a new library to the DPDK, proceed as follows: # add: # DIRS-$(CONFIG_RTE_LIBFOO) += libfoo -#. Create a new Makefile for this library, for example, derived from mempool Makefile: +#. Create a new Makefile for this library, for example, derived from mempool Makefile: .. code-block:: console @@ -91,11 +91,11 @@ To add a new library to the DPDK, proceed as follows: # rte_mempool -> foo -#. Update mk/DPDK.app.mk, and add -lfoo in LDLIBS variable when the option is enabled. - This will automatically add this flag when linking a DPDK application. +#. Update mk/DPDK.app.mk, and add -lfoo in LDLIBS variable when the option is enabled. + This will automatically add this flag when linking a DPDK application. -#. Build the DPDK with the new library (we only show a specific target here): +#. Build the DPDK with the new library (we only show a specific target here): .. code-block:: console @@ -104,7 +104,7 @@ To add a new library to the DPDK, proceed as follows: make -#. Check that the library is installed: +#. Check that the library is installed: .. code-block:: console |