From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40056.outbound.protection.outlook.com [40.107.4.56]) by dpdk.org (Postfix) with ESMTP id 2FD6A58FA; Mon, 17 Sep 2018 12:55:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZbdF6uhGvzVlZDhoM+tpt9WWnXBB+2OYu44ak488im8=; b=Y+vfd8xbvjRs++upiaYXf21O8CDDo6E1Y8C+EZCLgS8/HdoHEN1fW2X5BF3d37IWhVIqpIYDoJeK4LQCunWggPS4Yf3/aEl3QpgnEQKM0HPeuDHyZrcfylio4MeCxcbqyO8WDvnksQoIxwyMS5YA9PMmxaVv0rLmEBWnUKtAQ7g= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB3055.eurprd08.prod.outlook.com (52.133.14.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.17; Mon, 17 Sep 2018 10:55:30 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::b91d:e285:4647:f3e8]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::b91d:e285:4647:f3e8%2]) with mapi id 15.20.1143.017; Mon, 17 Sep 2018 10:55:29 +0000 From: "Gavin Hu (Arm Technology China)" To: Jerin Jacob CC: "dev@dpdk.org" , Honnappa Nagarahalli , Steve Capper , Ola Liljedahl , nd , "stable@dpdk.org" Thread-Topic: [PATCH v3 3/3] doc: add cross compile part for sample applications Thread-Index: AQHUTlq9YwDRvl2P8EuoFvBFSTtxyKT0Om2AgAAK+lCAAAH3AIAABbSg Date: Mon, 17 Sep 2018 10:55:29 +0000 Message-ID: References: <20180807031943.5331-1-gavin.hu@arm.com> <20180917074735.28161-1-gavin.hu@arm.com> <20180917074735.28161-3-gavin.hu@arm.com> <20180917094819.GA3140@jerin> <20180917103438.GA7618@jerin> In-Reply-To: <20180917103438.GA7618@jerin> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR08MB3055; 6:t22iKDRAH2bXrebQ3frXoh5sApVpzw713JFVr7pajQgmec3FU6cQXLsgOMdVABs9mJVBD3S3fNju/eEmEeYuLORiapT2nPHi1QgaBNT20PkLexe+Z47PjMJ/QhkrpAKNL2eY5ne63Ab78pyJ6amURHU02pW3VaDgqPV3U/c73ZWeZLXlQ3qRAbMznfQjUPXbSK/Tab51rOFiGNoRPv5O6D20b3mw8e1KPFqzMnvKM8vtqjWuOE3rmr+ePlJF1TBmPGH89A3DXkmoFIF+6jTEgMLlmUjPOBNir1mhQr4hzZSHysxxKCHHFMAzeU2666N8n/SXdCoViGoSuOcLWQoMatOZtB31RDDLLDsVJJlAHX1nVN3KKbSigmdWsPTudMZYJf63OaFqSa3vfw3FYipYWBT7Lnx+CLCRgEwt8vCG8t/WJnVYMj0xvQetfAbTZUfHTZig+fhx3IKMgR6OERV4PA==; 5:l2q9GugSx1+Cagc+mo6z3voqL9xAMAu0dnqBX2o7Wgw/2rCsVT5tdo5L0oewHyAcD81AZ9sQgAwiA4CLqBOQZ8sfzpm2AgLwNXns/lIEbDpFktP8TCifIykC46MLscSzboEGc7dmkWn+m0P0CLXDtrnpKkTPCp+/anpaQr5zwN0=; 7:QkQ1InSFk8OcYDvA+muNujwwhsguWvVz3RuJs2SKLYA6xBwrbf55HkvJkijpL9nJVBp71ssWXCgeujvmXWk4C3jWRN6tJHV3vYu8hD+ZM34LbmIkiQ92HRh8jD/n2f6GufxoWVR4UOqATT6ccruXHHLn5+Bx4aOl+3402D1JdAbOIfbyyrVU1iUJ5sfWqefSWQ4FE4fNdMkwdCJNUGB97lgKOCQdnAmYcz1pXTh9E0wEqSSlS5NpaGayEjaY5X0q x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: 4c0ee221-0c5e-4051-d20c-08d61c8c1555 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB3055; x-ms-traffictypediagnostic: VI1PR08MB3055: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(278428928389397)(163750095850); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(201708071742011)(7699050); SRVR:VI1PR08MB3055; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB3055; x-forefront-prvs: 0798146F16 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(396003)(136003)(346002)(39860400002)(13464003)(189003)(199004)(68736007)(6246003)(7736002)(102836004)(97736004)(26005)(55236004)(229853002)(6506007)(305945005)(74316002)(6916009)(86362001)(256004)(2900100001)(14444005)(53546011)(11346002)(476003)(186003)(5250100002)(2906002)(486006)(446003)(53936002)(478600001)(7696005)(33656002)(9686003)(54906003)(76176011)(55016002)(105586002)(6436002)(106356001)(3846002)(81156014)(81166006)(8676002)(25786009)(5660300001)(93886005)(99286004)(8936002)(316002)(72206003)(66066001)(4326008)(14454004)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3055; H:VI1PR08MB3167.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: nAes/537daxAv+gsgtuVwVlF/DzgNn8bqG66yz94dkT60s/qy9EC8EVv4RbOXcwtgPXSbpYSDS+i5HjnHCMOiExvdrdKxksxSyqRLzunRtnsYQGlSjjt3tZN/2KDsKDLwnBpC3ekHN6jrgzr0q+Bpujvv33DM6DlkdixkC2ps35NP7s2Z7g/KNBdInnvH+kfdhwDxjc2np2AqVF9vgL+z9nd+lTprm58XWAluLU6oiOKEzljA9o/vSArp2U8C5cad/UX9gyri+stLDU9OaKLexHXQ3rFGmU7+VJblwC9AVvDoqyystjPQjm2g0Bl8zhw4Ipim6U77r90lpvIN56Iq2aKc6XCru8cSq2C8f7T3Qo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c0ee221-0c5e-4051-d20c-08d61c8c1555 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2018 10:55:29.6767 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3055 Subject: Re: [dpdk-dev] [PATCH v3 3/3] doc: add cross compile part for sample applications X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2018 10:55:31 -0000 Hi Jerin, Thanks for review, could you help review the v5 version? Best Regards, Gavin > -----Original Message----- > From: Jerin Jacob > Sent: Monday, September 17, 2018 6:35 PM > To: Gavin Hu (Arm Technology China) > Cc: dev@dpdk.org; Honnappa Nagarahalli > ; Steve Capper > ; Ola Liljedahl ; nd > ; stable@dpdk.org > Subject: Re: [PATCH v3 3/3] doc: add cross compile part for sample > applications >=20 > -----Original Message----- > > Date: Mon, 17 Sep 2018 10:28:57 +0000 > > From: "Gavin Hu (Arm Technology China)" > > To: Jerin Jacob > > CC: "dev@dpdk.org" , Honnappa Nagarahalli > > , Steve Capper > , > > Ola Liljedahl , nd , > "stable@dpdk.org" > > > > Subject: RE: [PATCH v3 3/3] doc: add cross compile part for sample > > applications > > > > > -----Original Message----- > > > From: Jerin Jacob > > > Sent: Monday, September 17, 2018 5:48 PM > > > To: Gavin Hu (Arm Technology China) > > > Cc: dev@dpdk.org; Honnappa Nagarahalli > > > ; Steve Capper > ; > > > Ola Liljedahl ; nd ; > > > stable@dpdk.org > > > Subject: Re: [PATCH v3 3/3] doc: add cross compile part for sample > > > applications > > > > > > -----Original Message----- > > > > Date: Mon, 17 Sep 2018 15:47:35 +0800 > > > > From: Gavin Hu > > > > To: dev@dpdk.org > > > > CC: gavin.hu@arm.com, Honnappa.Nagarahalli@arm.com, > > > > steve.capper@arm.com, Ola.Liljedahl@arm.com, > > > > jerin.jacob@caviumnetworks.com, nd@arm.com, stable@dpdk.org > > > > Subject: [PATCH v3 3/3] doc: add cross compile part for sample > > > > applications > > > > X-Mailer: git-send-email 2.11.0 > > > > > > > > External Email > > > > > > > > Fixes: 7cacb05655 ("doc: add generic build instructions for sample > > > > apps") > > > > Cc: stable@dpdk.org > > > > > > > > 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 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=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. > > > > +In example of AARCH64 cross compiling: > > > > + > > > > + .. code-block:: console > > > > + > > > > + export RTE_TARGET=3Dbuild > > > > + export RTE_SDK=3D/path/to/rte_sdk > > > > + make -C examples CROSS=3Daarch64-linux-gnu- > > > > + or > > > > + make CROSS=3Daarch64-linux-gnu- > > > > > > It should be make -C examples/l3fwd CROSS=3Daarch64-linux-gnu-, Right= ? > > > as without giving directory it builds the SDK only. > > > > -C examples/l3fwd can be ignored if the $(pwd) is already in there. >=20 > Yes. Since it mentioned as "or" it better to explicitly mentioned in it. >=20 > i.e >=20 > make -C examples CROSS=3Daarch64-linux-gnu- >=20 > or >=20 > cd $(pwd)/examples/ > make CROSS=3Daarch64-linux-gnu- >=20 > or >=20 > make -C examples/ CROSS=3Daarch64-linux-gnu- >=20 > > > > > > > > > -- > > > > 2.11.0 > > > >