]> git.droids-corp.org - dpdk.git/commitdiff
doc: add arm64 cross file example
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Tue, 25 Jan 2022 13:20:02 +0000 (14:20 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 16 Mar 2022 19:23:30 +0000 (20:23 +0100)
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š <juraj.linkes@pantheon.tech>
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst

index c84e25b19c522496b8ab368213e1fd58c52d11bb..cbe9d171f84108d039dd392db55a075fdbcb13fc 100644 (file)
@@ -138,6 +138,32 @@ Cross Compiling DPDK with GNU toolchain using Meson
    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
+         # do not contain a pkgconfig binary, so it is 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<numa_install_dir>/include']  # replace <numa_install_dir>
+      c_link_args = ['-L<numa_install_dir>/lib'] # with your path
+
 To cross-compile DPDK on a desired target machine we can use the following
 command::