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 D5CBBA0524; Thu, 2 Jul 2020 10:01:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 02D0A1D6F8; Thu, 2 Jul 2020 10:01:35 +0200 (CEST) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by dpdk.org (Postfix) with ESMTP id 211611D609; Thu, 2 Jul 2020 10:01:34 +0200 (CEST) Received: by mail-io1-f66.google.com with SMTP id i25so28004816iog.0; Thu, 02 Jul 2020 01:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B7SnKNA4l1K2wnk0iQP4qa4xAhWxSxy9jOqPFVfohBE=; b=OzzGjWQiVnmWT86c/5qi8PlHGZfDzIr4I/tKO13g7CFZoi49XLCc2caXX/Oww9lZeY mW3fKktY6xp6vkjveHkE3wfag2teZaaFN7UHZgB5itDDiorQOmhLL9wBRB7mjX68bHm2 sfoHnR66kChMxYq/clgV9chdWGU9Hv/dPcYvj1CzFc3y4+mxbOprU8loSykIPsGGzdi+ q9hjCSvtpDnrOJ4OAAAIya9VM2BAq1xewQmvkZT/nN6jnJ7p225L0WhvydexKW8R0lHA 9Uod/LIxlklm1iEMgh3E2MvxldVrKJ39SwYQHHMfKXm5mL/BfDFp0nAOJqbOw7Hdl7vO E1OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B7SnKNA4l1K2wnk0iQP4qa4xAhWxSxy9jOqPFVfohBE=; b=nxETd0GdFuOaCoU9ggCEU7ikt95MAHJZW/ku+dQ6PMxACnxYTXD7FfT+2xfAgRQYV1 NUQAOzdi9gO2gujEEkD682ZuQI+0tVsmZJMh1KQJSwj3L20dgvpfFx6ynapOekLlUQ1L zACAmKdD393nCQY7TiU+oH4nIrg6zF6QQ8ytJXjHU5OHPkZ+ppRhs6Ne2QZOLd0SiPFL sb/gTFZJebzhm6Z/lkTuJZ1dWZmcUoU2w1b5AlDI06z+YCeHyfx6ToPBrKwElZYhGS29 FeQwqqKtS1XnHvTsadVYoPTtvPUAMRvN9FPIK7pGtxbm87oo49+b2kxMrNCfPE1I2rOu P0IQ== X-Gm-Message-State: AOAM532bcl3zmXYnEpVVWaiIjIbw3ZPxuS4w2lZnQNOWwAEXNeg4veG5 SDKTbC0PfA4p3nG74JKLgBW8m1seVqVJHdWEga8= X-Google-Smtp-Source: ABdhPJxFXfSquJigVAcnti5bfNtIAjwFohPGwYVhJE1US7aOEWo9fDrpA7KohlzRQamj159h0Ei/nt+okvIm6puyS1A= X-Received: by 2002:a02:6a26:: with SMTP id l38mr32618163jac.60.1593676893331; Thu, 02 Jul 2020 01:01:33 -0700 (PDT) MIME-Version: 1.0 References: <1573468461-25972-1-git-send-email-phil.yang@arm.com> <1573468461-25972-2-git-send-email-phil.yang@arm.com> In-Reply-To: From: Jerin Jacob Date: Thu, 2 Jul 2020 13:31:17 +0530 Message-ID: To: Phil Yang Cc: "jerinj@marvell.com" , "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" , Ruifeng Wang , Honnappa Nagarahalli , Joyce Kong , nd , "stable@dpdk.org" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jul 2, 2020 at 11:07 AM Phil Yang wrote: > > Hi Jerin, > > Your insight would be much appreciated. > > Thanks, > Phil > > > -----Original Message----- > > From: Ruifeng Wang > > Sent: Wednesday, May 27, 2020 4:29 PM > > To: Phil Yang ; dev@dpdk.org > > Cc: thomas@monjalon.net; david.marchand@redhat.com; > > jerinj@marvell.com; Honnappa Nagarahalli > > ; Joyce Kong ; nd > > ; stable@dpdk.org > > Subject: RE: [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance > > > > > > > -----Original Message----- > > > From: dev On Behalf Of Phil Yang > > > Sent: Monday, November 11, 2019 6:34 PM > > > To: dev@dpdk.org > > > Cc: thomas@monjalon.net; david.marchand@redhat.com; > > > jerinj@marvell.com; Honnappa Nagarahalli > > > ; Gavin Hu (Arm Technology China) > > > ; Joyce Kong (Arm Technology China) > > > ; nd ; stable@dpdk.org > > > Subject: [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance > > > > > > Add a guidance for aarch64 natively build 32-bit aarch32 DPDK. > > > > > > Cc: stable@dpdk.org > > > > > > Signed-off-by: Phil Yang > > > Reviewed-by: Gavin Hu > > > Tested-by: Joyce Kong > > > > > > --- > > > .../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 I think, "we" usage should be removed from the doc. > > > 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 > > > + 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 make based build is deprecated, Please change this to meson. The rest looks good to me. > > > -- > > > 2.7.4 > > > > Acked-by: Ruifeng Wang