From: Phil Yang <phil.yang@arm.com> To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, jerinj@marvell.com, Honnappa.Nagarahalli@arm.com, gavin.hu@arm.com, joyce.kong@arm.com, nd@arm.com, stable@dpdk.org Subject: [dpdk-stable] [PATCH 2/2] doc: add aarch32 build guidance Date: Mon, 11 Nov 2019 18:34:21 +0800 Message-ID: <1573468461-25972-2-git-send-email-phil.yang@arm.com> (raw) In-Reply-To: <1573468461-25972-1-git-send-email-phil.yang@arm.com> Add a guidance for aarch64 natively build 32-bit aarch32 DPDK. Cc: stable@dpdk.org Signed-off-by: Phil Yang <phil.yang@arm.com> Reviewed-by: Gavin Hu <gavin.hu@arm.com> Tested-by: Joyce Kong <joyce.kong@arm.com> --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 36 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 6 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 e799b0b..409d444 100644 --- a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +++ b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst @@ -1,15 +1,15 @@ .. SPDX-License-Identifier: BSD-3-Clause Copyright(c) 2018 ARM Corporation. -Cross compile DPDK for ARM64 -============================ -This chapter describes how to cross compile DPDK for ARM64 from x86 build hosts. +Cross compile DPDK for aarch64 and aarch32 +========================================== +This chapter describes how to cross-compile DPDK for aarch64 from x86 and compile 32-bit aarch32 DPDK from aarch64 build hosts. .. note:: - Whilst it is recommended to natively build DPDK on ARM64 (just - like with x86), it is also possible to cross-build DPDK for ARM64. An - ARM64 cross compile GNU toolchain is used for this. + Whilst it is recommended to natively build DPDK on aarch64 (just + like with x86), it is also possible to cross-build DPDK for aarch64. An + aarch64 cross compile GNU toolchain is used for this. Obtain the cross tool chain --------------------------- @@ -133,3 +133,27 @@ command:: meson arm64-build --cross-file config/arm/arm64_armv8_linux_gcc ninja -C arm64-build + +Compiling DPDK for aarch32/armv7 on aarch64 host +------------------------------------------ + +Some aarch64 platforms support EL0 aarch32 mode, so the 32-bit aarch32 +applications and the legacy 32-bit armv7 applications can run in this mode. +With the GNU C compiler for the armhf architecture toolchain +gcc-arm-linux-gnueabihf, it can generate aarch32 binary on aarch64 natively. + +For Example, in 64-bit Debian, we can use the following command to build 32-bit armv7 DPDK on aarch64 natively: + +Install cross compile toolchain for the armhf architecure. +command:: + + dpkg --add-architecture armhf + apt-get update + apt-get install -y gcc gcc-arm-linux-gnueabihf libc6:armhf make binutils + +Build DPDK arm-armv7a-linuxapp-gcc executables. +command:: + + cd <dpdk_folder> + make config CROSS=arm-linux-gnueabihf- T=arm-armv7a-linuxapp-gcc + make -j CROSS=arm-linux-gnueabihf- T=arm-armv7a-linuxapp-gcc RTE_DEVEL_BUILD=n -- 2.7.4
next prev parent reply other threads:[~2019-11-11 10:34 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-11-11 10:34 [dpdk-stable] [PATCH 1/2] mk: fix unsupported flag error on armhf architercture Phil Yang 2019-11-11 10:34 ` Phil Yang [this message] 2020-05-24 21:21 ` [dpdk-stable] [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance Thomas Monjalon 2020-05-25 3:20 ` Phil Yang 2020-05-27 8:28 ` Ruifeng Wang 2020-07-02 5:37 ` Phil Yang 2020-07-02 8:01 ` Jerin Jacob 2019-11-11 10:47 ` [dpdk-stable] [dpdk-dev] [PATCH 1/2] mk: fix unsupported flag error on armhf architercture Bruce Richardson 2019-11-12 5:25 ` Phil Yang (Arm Technology China) 2019-11-12 6:03 ` Thomas Monjalon 2019-11-12 6:40 ` Phil Yang (Arm Technology China) 2019-11-26 17:01 ` Thomas Monjalon 2019-11-27 8:09 ` Phil Yang (Arm Technology China) 2019-11-27 9:29 ` Bruce Richardson 2019-11-27 10:00 ` Phil Yang (Arm Technology China) 2019-11-27 10:32 ` Thomas Monjalon
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1573468461-25972-2-git-send-email-phil.yang@arm.com \ --to=phil.yang@arm.com \ --cc=Honnappa.Nagarahalli@arm.com \ --cc=david.marchand@redhat.com \ --cc=dev@dpdk.org \ --cc=gavin.hu@arm.com \ --cc=jerinj@marvell.com \ --cc=joyce.kong@arm.com \ --cc=nd@arm.com \ --cc=stable@dpdk.org \ --cc=thomas@monjalon.net \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
patches for DPDK stable branches This inbox may be cloned and mirrored by anyone: git clone --mirror http://inbox.dpdk.org/stable/0 stable/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 stable stable/ http://inbox.dpdk.org/stable \ stable@dpdk.org public-inbox-index stable Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.stable AGPL code for this site: git clone https://public-inbox.org/public-inbox.git