From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH v5] doc: add cross compile part for sample applications Date: Tue, 18 Sep 2018 11:00:13 +0000 Message-ID: <20180918110000.GA3278@jerin> References: <20180917104942.14967-1-gavin.hu@arm.com> <20180917105343.15434-1-gavin.hu@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , "Honnappa.Nagarahalli@arm.com" , "stable@dpdk.org" To: Gavin Hu Return-path: In-Reply-To: <20180917105343.15434-1-gavin.hu@arm.com> Content-Language: en-US Content-ID: <2100BA8361D57947B801C7241F797B37@namprd07.prod.outlook.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Mon, 17 Sep 2018 18:53:43 +0800 > From: Gavin Hu > To: dev@dpdk.org > CC: gavin.hu@arm.com, Honnappa.Nagarahalli@arm.com, > jerin.jacob@caviumnetworks.com, stable@dpdk.org > Subject: [PATCH v5] doc: add cross compile part for sample applications > X-Mailer: git-send-email 2.11.0 >=20 > External Email >=20 > Fixes: 7cacb05655 ("doc: add generic build instructions for sample apps") > Cc: stable@dpdk.org >=20 > Signed-off-by: Gavin Hu > Reviewed-by: Honnappa Nagarahalli > --- > doc/guides/sample_app_ug/compiling.rst | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) >=20 > diff --git a/doc/guides/sample_app_ug/compiling.rst b/doc/guides/sample_a= pp_ug/compiling.rst > index a2d75ed22..9ff531906 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 appl= ications. > To compile all the sample applications > -------------------------------------- >=20 > - > Set the path to DPDK source code if its not set: >=20 > .. code-block:: console > @@ -93,3 +92,18 @@ Build the application: >=20 > export RTE_TARGET=3Dbuild > make > + > +To cross compile the sample application(s) > +------------------------------------------ > + > +For cross compiling the sample application(s), please append 'CROSS=3D$(= CROSS_COMPILER_PREFIX)' to the 'make' command. IMO, You can remove "please" > +In example of AARCH64 cross compiling: I think, it is better to change to "AARCH64 cross compiling example:" > + > + .. code-block:: console > + > + export RTE_TARGET=3Dbuild > + export RTE_SDK=3D/path/to/rte_sdk > + make -C examples CROSS=3Daarch64-linux-gnu- > + or > + cd $(pwd)/examples/ Better to change to: cd $(RTE_SDK)/examples/ > + make CROSS=3Daarch64-linux-gnu- > -- > 2.11.0 With above changes you can add my Acked-by: Acked-by: Jerin Jacob >=20