DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] doc: add cross compile part for sample applications
@ 2018-08-14 16:18 Gavin Hu
  2018-09-14 14:55 ` Thomas Monjalon
  2018-09-17  2:13 ` [dpdk-dev] [PATCH v2] " Gavin Hu
  0 siblings, 2 replies; 5+ messages in thread
From: Gavin Hu @ 2018-08-14 16:18 UTC (permalink / raw)
  To: dev; +Cc: gavin.hu, Honnappa.Nagarahalli, stable

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>
---
 doc/guides/sample_app_ug/compiling.rst | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/doc/guides/sample_app_ug/compiling.rst b/doc/guides/sample_app_ug/compiling.rst
index a2d75ed..c8cf1bd 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,18 @@ Build the application:
 
         export RTE_TARGET=build
         make
+
+To cross compile the sample application(s)
+------------------------------------------
+
+For cross compiling the sample application(s), please append 'CC=$(CROSS_COMPILER)' to the 'make' command.
+For example:
+
+    .. code-block:: console
+
+        export RTE_TARGET=build
+        export RTE_SDK=/path/to/rte_sdk
+        export CROSS_COMPILER=aarch64-linux-gnu-gcc
+        make -C examples CC=$(CROSS_COMPILER)
+               or
+        make CC=$(CROSS_COMPILER)
-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH] doc: add cross compile part for sample applications
  2018-08-14 16:18 [dpdk-dev] [PATCH] doc: add cross compile part for sample applications Gavin Hu
@ 2018-09-14 14:55 ` Thomas Monjalon
  2018-09-17  2:16   ` Gavin Hu (Arm Technology China)
  2018-09-17  2:13 ` [dpdk-dev] [PATCH v2] " Gavin Hu
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Monjalon @ 2018-09-14 14:55 UTC (permalink / raw)
  To: Gavin Hu; +Cc: dev, Honnappa.Nagarahalli

14/08/2018 18:18, Gavin Hu:
> +For cross compiling the sample application(s), please append 'CC=$(CROSS_COMPILER)' to the 'make' command.

As you can see in doc/build-sdk-quick.txt, you should use CROSS=
for cross compilation.

> +For example:
> +        export CROSS_COMPILER=aarch64-linux-gnu-gcc
> +        make -C examples CC=$(CROSS_COMPILER)

It should be
	make -C examples CROSS=aarch64-linux-gnu-

Please would you like to make a patch v2 ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] [PATCH v2] doc: add cross compile part for sample applications
  2018-08-14 16:18 [dpdk-dev] [PATCH] doc: add cross compile part for sample applications Gavin Hu
  2018-09-14 14:55 ` Thomas Monjalon
@ 2018-09-17  2:13 ` Gavin Hu
  2018-11-19  0:19   ` [dpdk-dev] [dpdk-stable] " Thomas Monjalon
  1 sibling, 1 reply; 5+ messages in thread
From: Gavin Hu @ 2018-09-17  2:13 UTC (permalink / raw)
  To: dev; +Cc: gavin.hu, honnappa.nagarahalli, nd, stable

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>
---
 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 a2d75ed22..6f04743c8 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-
-- 
2.11.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH] doc: add cross compile part for sample applications
  2018-09-14 14:55 ` Thomas Monjalon
@ 2018-09-17  2:16   ` Gavin Hu (Arm Technology China)
  0 siblings, 0 replies; 5+ messages in thread
From: Gavin Hu (Arm Technology China) @ 2018-09-17  2:16 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Honnappa Nagarahalli

Hi Thomas,

V2 was submitted, thanks for review!
http://patchwork.dpdk.org/patch/44768/

Best Regards,
Gavin

> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Friday, September 14, 2018 10:55 PM
> To: Gavin Hu (Arm Technology China) <Gavin.Hu@arm.com>
> Cc: dev@dpdk.org; Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>
> Subject: Re: [dpdk-dev] [PATCH] doc: add cross compile part for sample
> applications
>
> 14/08/2018 18:18, Gavin Hu:
> > +For cross compiling the sample application(s), please append
> 'CC=$(CROSS_COMPILER)' to the 'make' command.
>
> As you can see in doc/build-sdk-quick.txt, you should use CROSS= for cross
> compilation.
>
> > +For example:
> > +        export CROSS_COMPILER=aarch64-linux-gnu-gcc
> > +        make -C examples CC=$(CROSS_COMPILER)
>
> It should be
> make -C examples CROSS=aarch64-linux-gnu-
>
> Please would you like to make a patch v2 ?
>

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [dpdk-stable] [PATCH v2] doc: add cross compile part for sample applications
  2018-09-17  2:13 ` [dpdk-dev] [PATCH v2] " Gavin Hu
@ 2018-11-19  0:19   ` Thomas Monjalon
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2018-11-19  0:19 UTC (permalink / raw)
  To: Gavin Hu; +Cc: stable, dev, honnappa.nagarahalli, nd

17/09/2018 04:13, Gavin Hu:
> 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>

Applied, thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-19  0:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-14 16:18 [dpdk-dev] [PATCH] doc: add cross compile part for sample applications Gavin Hu
2018-09-14 14:55 ` Thomas Monjalon
2018-09-17  2:16   ` Gavin Hu (Arm Technology China)
2018-09-17  2:13 ` [dpdk-dev] [PATCH v2] " Gavin Hu
2018-11-19  0:19   ` [dpdk-dev] [dpdk-stable] " Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).