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 9D26DA00C2; Tue, 25 Jan 2022 14:20:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56170429EE; Tue, 25 Jan 2022 14:20:12 +0100 (CET) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 8B67F429E4 for ; Tue, 25 Jan 2022 14:20:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id D9D9213C685; Tue, 25 Jan 2022 14:20:09 +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 WT8As4MPyP7Y; Tue, 25 Jan 2022 14:20:07 +0100 (CET) Received: from service-node1.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id DB21B13C693; Tue, 25 Jan 2022 14:20:04 +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 v3 4/4] doc: add an example arm64 cross file Date: Tue, 25 Jan 2022 14:20:02 +0100 Message-Id: <1643116802-26466-5-git-send-email-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1643116802-26466-1-git-send-email-juraj.linkes@pantheon.tech> References: <1638875109-5544-1-git-send-email-juraj.linkes@pantheon.tech> <1643116802-26466-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š Acked-by: Ruifeng Wang --- .../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 045cc05c65..f491725948 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