New upstream version 18.02
[deb_dpdk.git] / doc / guides / testpmd_app_ug / build_app.rst
1 ..  SPDX-License-Identifier: BSD-3-Clause
2     Copyright(c) 2010-2014 Intel Corporation.
3
4 Compiling the Application
5 =========================
6
7 The ``testpmd`` application is compiled as part of the main compilation of the DPDK libraries and tools.
8 Refer to the DPDK Getting Started Guides for details.
9 The basic compilation steps are:
10
11 #.  Set the required environmental variables and go to the source directory:
12
13     .. code-block:: console
14
15         export RTE_SDK=/path/to/rte_sdk
16         cd $RTE_SDK
17
18 #.  Set the compilation target. For example:
19
20     .. code-block:: console
21
22         export RTE_TARGET=x86_64-native-linuxapp-gcc
23
24 #.  Build the application:
25
26     .. code-block:: console
27
28         make install T=$RTE_TARGET
29
30     The compiled application will be located at:
31
32     .. code-block:: console
33
34         $RTE_SDK/$RTE_TARGET/app/testpmd