From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BE9C8A328D for ; Wed, 23 Oct 2019 05:42:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A57B11BF25; Wed, 23 Oct 2019 05:42:40 +0200 (CEST) Received: from foss.arm.com (unknown [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id E4C801BF25; Wed, 23 Oct 2019 05:42:38 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 22A741682; Tue, 22 Oct 2019 20:42:29 -0700 (PDT) Received: from net-arm-thunderx2-01.test.ast.arm.com (net-arm-thunderx2-01.shanghai.arm.com [10.169.40.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E6FB13F6C4; Tue, 22 Oct 2019 20:42:26 -0700 (PDT) From: Joyce Kong To: dev@dpdk.org Cc: nd@arm.com, thomas@monjalon.net, jerinj@marvell.com, honnappa.nagarahalli@arm.com, gavin.hu@arm.com, stable@dpdk.org Date: Wed, 23 Oct 2019 11:42:16 +0800 Message-Id: <1571802136-20295-1-git-send-email-joyce.kong@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570848014-20125-1-git-send-email-joyce.kong@arm.com> References: <1570848014-20125-1-git-send-email-joyce.kong@arm.com> Subject: [dpdk-stable] [PATCH v2] doc: update cross build tool version desc and fix compiling issue 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Update the cross build tool version to common description. And remove the command 'git checkout' when cross builing which results in compiling error. Fixes: 01add9da25cd ("doc: add cross compiling guide") Cc: stable@dpdk.org Signed-off-by: Joyce Kong --- doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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 28a8e09..fa7df1c 100644 --- a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +++ b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst @@ -16,19 +16,19 @@ Obtain the cross tool chain The latest cross compile tool chain can be downloaded from: https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads. -Following is the step to get the version 8.2, latest one at the time of this writing. +Following is the example to get the version 8.3, latest one at the time of this writing. .. code-block:: console - wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2019.01/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz + wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz Unzip and add into the PATH --------------------------- .. code-block:: console - tar -xvf gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz - export PATH=$PATH:/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin + tar -xvf gcc-arm--x86_64-aarch64-linux-gnu.tar.xz + export PATH=$PATH:/gcc-arm--x86_64-aarch64-linux-gnu/bin .. note:: @@ -50,7 +50,6 @@ NUMA is required by most modern machines, not needed for non-NUMA architectures. git clone https://github.com/numactl/numactl.git cd numactl - git checkout v2.0.11 -b v2.0.11 ./autogen.sh autoconf -i ./configure --host=aarch64-linux-gnu CC=aarch64-linux-gnu-gcc --prefix= @@ -71,9 +70,9 @@ Copy the NUMA header files and lib to the cross compiler's directories: .. code-block:: console - cp /include/numa*.h /gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/ - cp /lib/libnuma.a /gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/ - cp /lib/libnuma.so /gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/ + cp /include/numa*.h /gcc-arm--x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/ + cp /lib/libnuma.a /gcc-arm--x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu// + cp /lib/libnuma.so /gcc-arm--x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu// .. _configure_and_cross_compile_dpdk_build: -- 2.7.4