From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id C1B4C1B94E for ; Fri, 11 Jan 2019 11:32:18 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from yskoh@mellanox.com) with ESMTPS (AES256-SHA encrypted); 11 Jan 2019 12:32:17 +0200 Received: from scfae-sc-2.mti.labs.mlnx (scfae-sc-2.mti.labs.mlnx [10.101.0.96]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x0BAVjcg018586; Fri, 11 Jan 2019 12:32:16 +0200 From: Yongseok Koh To: Gavin Hu Cc: Honnappa Nagarahalli , dpdk stable Date: Fri, 11 Jan 2019 02:31:41 -0800 Message-Id: <20190111103142.21088-18-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190111103142.21088-1-yskoh@mellanox.com> References: <20190111103142.21088-1-yskoh@mellanox.com> Subject: [dpdk-stable] patch 'doc: add cross-compilation in sample apps guide' has been queued to LTS release 17.11.5 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 10:32:19 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/13/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Yongseok --- >>From c151db4aa0099e15440e8a1d687b46a2f8574161 Mon Sep 17 00:00:00 2001 From: Gavin Hu Date: Mon, 17 Sep 2018 10:13:23 +0800 Subject: [PATCH] doc: add cross-compilation in sample apps guide [ upstream commit f00d0d5fb652504ad6af2ab1a8b146b1cb86fe38 ] Fixes: 7cacb05655 ("doc: add generic build instructions for sample apps") Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli --- doc/guides/sample_app_ug/compiling.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/guides/sample_app_ug/compiling.rst b/doc/guides/sample_app_ug/compiling.rst index 8bedaa79b..3fe713114 100644 --- a/doc/guides/sample_app_ug/compiling.rst +++ b/doc/guides/sample_app_ug/compiling.rst @@ -36,7 +36,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 @@ -120,3 +119,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- -- 2.11.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-01-11 02:29:11.877166340 -0800 +++ 0018-doc-add-cross-compilation-in-sample-apps-guide.patch 2019-01-11 02:29:10.831972000 -0800 @@ -1,10 +1,11 @@ -From f00d0d5fb652504ad6af2ab1a8b146b1cb86fe38 Mon Sep 17 00:00:00 2001 +From c151db4aa0099e15440e8a1d687b46a2f8574161 Mon Sep 17 00:00:00 2001 From: Gavin Hu Date: Mon, 17 Sep 2018 10:13:23 +0800 Subject: [PATCH] doc: add cross-compilation in sample apps guide +[ upstream commit f00d0d5fb652504ad6af2ab1a8b146b1cb86fe38 ] + Fixes: 7cacb05655 ("doc: add generic build instructions for sample apps") -Cc: stable@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli @@ -13,10 +14,10 @@ 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/guides/sample_app_ug/compiling.rst b/doc/guides/sample_app_ug/compiling.rst -index a2d75ed22..6f04743c8 100644 +index 8bedaa79b..3fe713114 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. +@@ -36,7 +36,6 @@ This section explains how to compile the DPDK sample applications. To compile all the sample applications -------------------------------------- @@ -24,7 +25,7 @@ Set the path to DPDK source code if its not set: .. code-block:: console -@@ -93,3 +92,17 @@ Build the application: +@@ -120,3 +119,17 @@ Build the application: export RTE_TARGET=build make