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 D9D62A04C0; Mon, 28 Sep 2020 07:33:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9F1F1D5D1; Mon, 28 Sep 2020 07:33:46 +0200 (CEST) Received: from mail-il1-f194.google.com (mail-il1-f194.google.com [209.85.166.194]) by dpdk.org (Postfix) with ESMTP id 305F51D5CF for ; Mon, 28 Sep 2020 07:33:45 +0200 (CEST) Received: by mail-il1-f194.google.com with SMTP id y2so7523ila.0 for ; Sun, 27 Sep 2020 22:33:45 -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:content-transfer-encoding; bh=bad/hJeKvkCd1StHIg1l0oIW/9ftPmVEs7LWyab//qY=; b=lRljc476WjlZwZGWdALJtkhtKCNg4ntdLJc0pVcivJ0hihSvbDL4BZHgNU+yMfvzb+ +alGg0/QLd/U2SjLgibFEz+Eu+X74l5SWt6UecBur26qluk6BXUZycjVzfyKUJ0sIMay xZlDmfC9EBHdJ/G9EkO7U9n2lIWPIGUvByG8pLW0e6+KoW3z1oNSeI78/UGwJc2o39Ps lZMmvCjpD42lCG/bCrgO+YI3Q2oPiH4aJlMr5U+tTuWIZU+zbKIih/0fG8KrI7s+A684 bFbmq6JRVSjIieFyGVCvyiY6vvHoWq35ZOMxpJVDCUEkkI7e3TaKI5nFF1v10t/gg7Lt o1FQ== 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:content-transfer-encoding; bh=bad/hJeKvkCd1StHIg1l0oIW/9ftPmVEs7LWyab//qY=; b=T9b5lAT1Novew+Lix8dVxS9IoQsMesLMs+WhufKssGty0ZLrZyWAlcd9UL6tpEXGue Vb1ilaY+wDMl2s2ZNH9Ng2lPxo6vUd9vt973fMM2dGhh21AzLzX8UDEpI0xWXHXmeahZ Jtd4WsKM2etKkovnD3zVDJdZVIstS/adVP0vx2KHyYe9RlRYeXxI2j073cCn8QAbGzi0 yHqR7A7HoZVBFSqEa2jxhy4BFMycgBnV88dk0kC3h5/VJrAxgQQSqQXIhWwNT95LuZ2V KuAWPy+RtubnqMoog8Zo/a9RfpSD2oZD4bmeJ9XEIqZOjETYVKyZOyRlyUh8g7/3ilE1 q7XA== X-Gm-Message-State: AOAM531Ps1BXFn7xeIhaBRWJ2gLOdwEoIE/QGfE6JNfJEFEmSN42vlHo 6O6kBW5urHCG/+Fi9T99gH8ta3MO1rd6R25Yyis= X-Google-Smtp-Source: ABdhPJwDwLyYvyLg06aYjgQ74rALQ9YpqV1JZb1GJFG0u6kR3UMcfyJhYMwr7B63DHxRza/cBDnM2kE8z6GnfBVooDc= X-Received: by 2002:a92:c00c:: with SMTP id q12mr8856567ild.294.1601271223515; Sun, 27 Sep 2020 22:33:43 -0700 (PDT) MIME-Version: 1.0 References: <1593186965-17954-1-git-send-email-hkalra@marvell.com> <1593186965-17954-2-git-send-email-hkalra@marvell.com> In-Reply-To: <1593186965-17954-2-git-send-email-hkalra@marvell.com> From: Jerin Jacob Date: Mon, 28 Sep 2020 11:03:27 +0530 Message-ID: To: Harman Kalra Cc: John McNamara , Marko Kovacevic , dpdk-dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH 2/2] doc: update octeontx platform guide 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 Fri, Jun 26, 2020 at 9:26 PM Harman Kalra wrote: > > Removing make build instructions from the platform guide > as building DPDK sources using 'make' will be deprecated > in future releases. Please change the commit message as the fact that 'make' is removed now. And please add the Fix tag to make the removal commit. With the above change: Acked-by: Jerin Jacob > > Signed-off-by: Harman Kalra > --- > doc/guides/platform/octeontx.rst | 52 ++++++++++++++------------------ > 1 file changed, 22 insertions(+), 30 deletions(-) > > diff --git a/doc/guides/platform/octeontx.rst b/doc/guides/platform/octeo= ntx.rst > index 7d1cb647d..57129552e 100644 > --- a/doc/guides/platform/octeontx.rst > +++ b/doc/guides/platform/octeontx.rst > @@ -95,18 +95,16 @@ drivers can be compiled with the following steps, > .. code-block:: console > > cd > - make config T=3Darm64-thunderx-linux-gcc > - make > + meson build > + ninja -C build > > The example applications can be compiled using the following: > > .. code-block:: console > > cd > - export RTE_SDK=3D$PWD > - export RTE_TARGET=3Dbuild > - cd examples/ > - make > + meson build -Dexamples=3D > + ninja -C build > > Cross Compilation > ~~~~~~~~~~~~~~~~~ > @@ -115,47 +113,41 @@ The DPDK applications can be cross-compiled on any = x86 based platform. The > OCTEON TX SDK need to be installed on the build system. The SDK package = will > provide the required toolchain etc. > > -Refer to :doc:`../linux_gsg/cross_build_dpdk_for_arm64` for further step= s on > -compilation. The 'host' & 'CC' to be used in the commands would change, > -in addition to the paths to which libnuma related files have to be > -copied. > +Refer to :doc:`../linux_gsg/cross_build_dpdk_for_arm64` for generic arm6= 4 details. > > The following steps can be used to perform cross-compilation with OCTEON= TX > SDK 6.2.0 patch 3: > > +meson build > +^^^^^^^^^^^ > + > .. code-block:: console > > cd > source env-setup > > - 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=3Daarch64-thunderx-linux CC=3Daarch64-thunder= x-linux-gnu-gcc --prefix=3D > - make install > - > -The above steps will prepare build system with numa additions. Now this = build system can be used > -to build applications for **OCTEON TX** :sup:`=C2=AE` platforms. > +The above steps will prepare build system with required toolchain. Now t= his build > +system can be used to build applications for **OCTEON TX** :sup:`=C2=AE`= platforms. > > .. code-block:: console > > cd > - export RTE_SDK=3D$PWD > - export RTE_KERNELDIR=3D$THUNDER_ROOT/linux/kernel/linux > - make config T=3Darm64-thunderx-linux-gcc > - make -j CROSS=3Daarch64-thunderx-linux-gnu- CONFIG_RTE_KNI_KMOD= =3Dn CONFIG_RTE_EAL_IGB_UIO=3Dn EXTRA_CFLAGS=3D"-isystem = /include" EXTRA_LDFLAGS=3D"-L/lib -lnuma" > - > -If NUMA support is not required, it can be disabled as explained in > -:doc:`../linux_gsg/cross_build_dpdk_for_arm64`. > + meson build --cross-file config/arm/arm64_thunderx_linux_gcc > + ninja -C build > > -Following steps could be used in that case. > +The example applications can be compiled using the following: > > .. code-block:: console > > - make config T=3Darm64-thunderx-linux-gcc > - make CROSS=3Daarch64-thunderx-linux-gnu- > + cd > + meson build --cross-file config/arm/arm64_thunderx_linux_gcc -De= xamples=3D > + ninja -C build > + > +.. note:: > > + By default, meson cross compilation uses ``aarch64-linux-gnu-gcc`` to= olchain, > + if OCTEON TX SDK 6.2.0 patch 3 is available then it can be used by > + overriding the c, cpp, ar, strip ``binaries`` attributes to respectiv= e thunderx > + toolchain binaries in ``config/arm/arm64_thunderx_linux_gcc`` file. > > SDK and related information can be obtained from: `Cavium support site <= https://support.cavium.com/>`_. > -- > 2.18.0 >