mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-26 23:13:27 +08:00
d17d1b6bde
This commit adds the integration of the Data Plane Development Kit (DPDK). This commit does not enforce the use of UIO or VFIO kernel frameworks, as DPDK's architecture supports userland memory mappings that do not require these technologies. By maintaining this flexibility, DPDK can operate with a broader range of hardware and software configurations. Only the little endian targets are properly supported by DPDK. Big endian was supported, mostly on Power8, but it has not been used for a while and IBM is not strongly pushing any tests. Should big endian be supported again, DPDK community will be welcoming any contributions. Notes about license: DPDK was released with the BSD-3-Clause license. One network driver, the Google Virtual Ethernet (GVE) include files under the MIT license. See [1] and [2]. There used to be GPL-2.0-only licensed kernel modules, but they got removed in previous versions [K] [KNI], so Buildroot won't be used to compile the GPL-2.0-only code. There are also 2 files in "lib/eal/windows" under other licenses (namely BSD-2-Clause, ISC and MIT) but they are parts of the Environment Abstraction Library (EAL) for Microsoft Windows OS, it means they are not used when compiling for the Linux targets of Buildroot. The list of DPDK license exceptions is maintained at [2]. Add configuration options to enable DPDK examples and tests. [1] https://git.dpdk.org/dpdk/tree/doc/guides/nics/gve.rst?h=v24.07 [2] https://git.dpdk.org/dpdk/tree/license/exceptions.txt?h=v24.07 [KNI] https://git.dpdk.org/dpdk/commit/?id=f78c100bc87119c6a94130a6689d773afdaa9d98 [UIO] https://git.dpdk.org/dpdk/commit/?id=56bb5841fd0608989101d933f091852a3126b4fe [K] https://git.dpdk.org/dpdk-kmods/commit/?id=d16f3b44987be181b6effee139558a084eaf9f8c Signed-off-by: Vincent Jardin <vjardin@free.fr> Suggested-by: Julien Olivain <ju.o@free.fr> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: Julien Olivain <ju.o@free.fr> Reviewed-by: Yann Morin <yann.morin.1998@free.fr> Reviewed-by: Arnout Vandecappelle <arnout@mind.de> Tested-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
44 lines
1.7 KiB
Diff
44 lines
1.7 KiB
Diff
From c5ea091a74bbfa5fb095d2c6fe15be3a7b15cacb Mon Sep 17 00:00:00 2001
|
|
From: Julien Olivain <ju.o@free.fr>
|
|
Date: Sun, 8 Sep 2024 13:20:14 +0200
|
|
Subject: [PATCH] Fix aarch64 build
|
|
|
|
The condition on which DPDK meson skip the -march detection for Aarch64
|
|
seems incorrect or incomplete. This patch changes the condition in order
|
|
to better match the comment (that the options are decided in
|
|
config/arm/meson.build). It actually test for the architecture name.
|
|
|
|
While this patch might need some discussion with DPDK maintainers to
|
|
cover all situations, it can still be useful here in Buildroot, as it
|
|
fixes the Aarch64 cross compilation.
|
|
|
|
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
|
Signed-off-by: Vincent Jardin <vjardin@free.fr>
|
|
Upstream: to be proposed https://patches.dpdk.org/project/dpdk/list/
|
|
Links: cherry-picked from https://github.com/jolivain/dpdk/commit/c5ea091a74bbfa5fb095d2c6fe15be3a7b15cacb
|
|
---
|
|
config/meson.build | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/config/meson.build b/config/meson.build
|
|
index 8c8b019c25..ea48e55ce3 100644
|
|
--- a/config/meson.build
|
|
+++ b/config/meson.build
|
|
@@ -176,10 +176,10 @@ if not is_ms_compiler
|
|
else
|
|
machine_args += '-march=' + cpu_instruction_set
|
|
# arm manages generic/auto config in config/arm/meson.build
|
|
- if cpu_instruction_set != 'generic' and cpu_instruction_set != 'auto'
|
|
- compiler_arch_support = cc.has_argument('-march=' + cpu_instruction_set)
|
|
- else
|
|
+ if host_machine.cpu_family().startswith('aarch')
|
|
compiler_arch_support = true
|
|
+ else
|
|
+ compiler_arch_support = cc.has_argument('-march=' + cpu_instruction_set)
|
|
endif
|
|
endif
|
|
if not compiler_arch_support
|
|
--
|
|
2.46.0
|
|
|