X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fguides%2Fplatform%2Focteontx.rst;h=42ddb1762efa775c3eea8f94844b9a5bd0080d6b;hb=c0d002aed98d6d1d38d6bb318a5bd2ed5cdc01b1;hp=3bde91f9daaf4e47afc3fd61adb7c8c79f90fe3a;hpb=474fd349bb3f7db75c993a60752a8f1830373597;p=dpdk.git diff --git a/doc/guides/platform/octeontx.rst b/doc/guides/platform/octeontx.rst index 3bde91f9da..42ddb1762e 100644 --- a/doc/guides/platform/octeontx.rst +++ b/doc/guides/platform/octeontx.rst @@ -94,19 +94,15 @@ drivers can be compiled with the following steps, .. code-block:: console - cd - make config T=arm64-thunderx-linuxapp-gcc - make + meson build -Dexamples= + ninja -C build The example applications can be compiled using the following: .. code-block:: console - cd - export RTE_SDK=$PWD - export RTE_TARGET=build - cd examples/ - make + meson build -Dexamples= + ninja -C build Cross Compilation ~~~~~~~~~~~~~~~~~ @@ -115,10 +111,7 @@ 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 steps 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 arm64 details. The following steps can be used to perform cross-compilation with OCTEON TX SDK 6.2.0 patch 3: @@ -128,34 +121,28 @@ SDK 6.2.0 patch 3: 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=aarch64-thunderx-linux CC=aarch64-thunderx-linux-gnu-gcc --prefix= - 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:`®` platforms. +The above steps will prepare build system with required toolchain. +Now this build system can be used to build applications for **OCTEON TX** :sup:`®` platforms. .. code-block:: console cd - export RTE_SDK=$PWD - export RTE_KERNELDIR=$THUNDER_ROOT/linux/kernel/linux - make config T=arm64-thunderx-linuxapp-gcc - make -j CROSS=aarch64-thunderx-linux-gnu- CONFIG_RTE_KNI_KMOD=n CONFIG_RTE_EAL_IGB_UIO=n EXTRA_CFLAGS="-isystem /include" EXTRA_LDFLAGS="-L/lib -lnuma" + meson build --cross-file config/arm/arm64_thunderx_linux_gcc + ninja -C build -If NUMA support is not required, it can be disabled as explained in -:doc:`../linux_gsg/cross_build_dpdk_for_arm64`. - -Following steps could be used in that case. +The example applications can be compiled using the following: .. code-block:: console - make config T=arm64-thunderx-linuxapp-gcc - make CROSS=aarch64-thunderx-linux-gnu- + cd + meson build --cross-file config/arm/arm64_thunderx_linux_gcc -Dexamples= + ninja -C build + +.. note:: + By default, meson cross compilation uses ``aarch64-linux-gnu-gcc`` toolchain, + 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 respective thunderx + toolchain binaries in ``config/arm/arm64_thunderx_linux_gcc`` file. SDK and related information can be obtained from: `Cavium support site `_.