From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 016ABA0093; Tue, 7 Dec 2021 12:05:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E77B942738; Tue, 7 Dec 2021 12:05:17 +0100 (CET) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 5D3DE426D6 for ; Tue, 7 Dec 2021 12:05:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id A79FE1342B7; Tue, 7 Dec 2021 12:05:14 +0100 (CET) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YOY9_Mhcw0Sd; Tue, 7 Dec 2021 12:05:13 +0100 (CET) Received: from service-node1.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id E3E761342BC; Tue, 7 Dec 2021 12:05:11 +0100 (CET) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: thomas@monjalon.net, david.marchand@redhat.com, Honnappa.Nagarahalli@arm.com, Ruifeng.Wang@arm.com, ferruh.yigit@intel.com, jerinjacobk@gmail.com Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v2 4/4] docs: add an example arm64 cross file Date: Tue, 7 Dec 2021 12:05:09 +0100 Message-Id: <1638875109-5544-5-git-send-email-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1638875109-5544-1-git-send-email-juraj.linkes@pantheon.tech> References: <1637229656-21612-1-git-send-email-juraj.linkes@pantheon.tech> <1638875109-5544-1-git-send-email-juraj.linkes@pantheon.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The docs mention modifications and additions to the cross file, but there is no demonstration of how those should look like. Signed-off-by: Juraj Linkeš --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst index 6153bc5b77..78bf19882e 100644 --- a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +++ b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst @@ -137,6 +137,32 @@ Cross Compiling DPDK with GNU toolchain using Meson ones, which have an extra "-none-" in their name. Please modify the cross file binaries accordingly when using the downloaded cross compilers. + An example cross file with modified names and added numa paths would look + like this: + +.. code-block:: console + + [binaries] + c = 'aarch64-none-linux-gnu-gcc' + cpp = 'aarch64-none-linux-gnu-cpp' + ar = 'aarch64-none-linux-gnu-gcc-ar' + strip = 'aarch64-none-linux-gnu-strip' + pkgconfig = 'aarch64-linux-gnu-pkg-config' # the downloaded binaries + # don't contain a pkgconfig binary, so it's not modified + pcap-config = '' + + [host_machine] + system = 'linux' + cpu_family = 'aarch64' + cpu = 'armv8-a' + endian = 'little' + + [properties] + # Generate binaries that are portable across all Armv8 machines + platform = 'generic' + c_args = ['-I/include'] # replace + c_link_args = ['-L/lib'] # with your path + To cross-compile DPDK on a desired target machine we can use the following command:: -- 2.20.1