[dpdk-dev] [PATCH v2] doc: add generic compilation doc for all sample apps

Thomas Monjalon thomas at monjalon.net
Sun Jul 9 23:20:57 CEST 2017


Hi,

This method is deprecated.
See below for updating the commands.

29/06/2017 10:40, Herakliusz Lipiec:
> +Set the path to DPDK source code if its not set:
> +
> +    .. code-block:: console
> +
> +        export RTE_SDK=/path/to/rte_sdk
> +
> +Set the target (a default target is used if not specified). For example:
> +
> +    .. code-block:: console
> +
> +        export RTE_TARGET=x86_64-native-linuxapp-gcc

No need to export RTE_TARGET at this point.
This target is just needed for "make config".

> +Go to DPDK source:
> +
> +    .. code-block:: console
> +
> +       cd $RTE_SDK
> +
> +Make and install DPDK:
> +
> +   .. code-block:: console
> +
> +        make install T=$RTE_TARGET

The new standard method is:

	make config T=$RTE_TARGET
	make

The config can be tuned between these two commands.
The command "make install" is not required to build examples.

> +Build the sample applications:
> +
> +   .. code-block:: console
> +
> +      make examples T=$RTE_TARGET

You can use this command with the new method:

	export RTE_TARGET=build
	make -C examples

Note that the target for examples is the DPDK build directory.
It can be different if O= was used when configuring/compiling DPDK.


More information about the dev mailing list