summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Hu <gavin.hu@arm.com>2018-09-17 10:13:23 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-11-19 01:33:46 +0100
commitf00d0d5fb652504ad6af2ab1a8b146b1cb86fe38 (patch)
treebf4964ca99bf99fc5e415f0868aa1dfcf5ba37b2
parentb84c108742a94ae61a38bb09dfdc2f68e4a25775 (diff)
downloaddpdk-f00d0d5fb652504ad6af2ab1a8b146b1cb86fe38.zip
dpdk-f00d0d5fb652504ad6af2ab1a8b146b1cb86fe38.tar.gz
dpdk-f00d0d5fb652504ad6af2ab1a8b146b1cb86fe38.tar.xz
doc: add cross-compilation in sample apps guide
Fixes: 7cacb05655 ("doc: add generic build instructions for sample apps") Cc: stable@dpdk.org Signed-off-by: Gavin Hu <gavin.hu@arm.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
-rw-r--r--doc/guides/sample_app_ug/compiling.rst15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/guides/sample_app_ug/compiling.rst b/doc/guides/sample_app_ug/compiling.rst
index a2d75ed..6f04743 100644
--- a/doc/guides/sample_app_ug/compiling.rst
+++ b/doc/guides/sample_app_ug/compiling.rst
@@ -9,7 +9,6 @@ This section explains how to compile the DPDK sample applications.
To compile all the sample applications
--------------------------------------
-
Set the path to DPDK source code if its not set:
.. code-block:: console
@@ -93,3 +92,17 @@ Build the application:
export RTE_TARGET=build
make
+
+To cross compile the sample application(s)
+------------------------------------------
+
+For cross compiling the sample application(s), please append 'CROSS=$(CROSS_COMPILER_PREFIX)' to the 'make' command.
+In example of AARCH64 cross compiling:
+
+ .. code-block:: console
+
+ export RTE_TARGET=build
+ export RTE_SDK=/path/to/rte_sdk
+ make -C examples CROSS=aarch64-linux-gnu-
+ or
+ make CROSS=aarch64-linux-gnu-