[v6,11/11] build: disable libnuma in cross builds
Checks
Commit Message
Some Arm SoCs are not NUMA systems. Add the capability to disable NUMA
for cross build and disabled NUMA in Arm cross files.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
config/arm/arm64_armada_linux_gcc | 1 +
config/arm/arm64_armv8_linux_gcc | 1 +
config/arm/arm64_bluefield_linux_gcc | 1 +
config/arm/arm64_dpaa_linux_gcc | 1 +
config/arm/arm64_n1sdp_linux_gcc | 1 +
config/arm/arm64_octeontx2_linux_gcc | 1 +
config/arm/arm64_stingray_linux_gcc | 1 +
config/meson.build | 4 ++++
8 files changed, 11 insertions(+)
@@ -18,4 +18,5 @@ implementer_id = '0x56'
part_number = 'generic'
max_numa_nodes = 1
max_lcores = 16
+has_libnuma = 0
disabled_drivers = ['bus/dpaa', 'bus/fslmc', 'common/dpaax']
@@ -33,5 +33,6 @@ part_number = 'generic'
max_lcores = 256
max_numa_nodes = 4
+# has_libnuma = 0 # set to 0 if the SoC is not a NUMA system
# disabled_drivers = ['bus/dpaa', 'crypto']
# add to the set of disabled libraries
@@ -17,3 +17,4 @@ implementer_id = '0x41'
part_number = '0xd08'
max_numa_nodes = 1
max_lcores = 16
+has_libnuma = 0
@@ -18,3 +18,4 @@ implementer_id = 'dpaa'
part_number = 'generic'
max_numa_nodes = 1
max_lcores = 16
+has_libnuma = 0
@@ -17,3 +17,4 @@ implementer_id = '0x41'
part_number = '0xd0c'
max_numa_nodes = 1
max_lcores = 4
+has_libnuma = 0
@@ -17,3 +17,4 @@ implementer_id = '0x43'
part_number = '0xb2'
max_numa_nodes = 1
max_lcores = 36
+has_libnuma = 0
@@ -17,3 +17,4 @@ implementer_id = '0x41'
part_number = '0xd08'
max_numa_nodes = 1
max_lcores = 16
+has_libnuma = 0
@@ -262,6 +262,10 @@ if meson.is_cross_build()
message('Setting RTE_MAX_LCORE from cross file')
dpdk_conf.set('RTE_MAX_LCORE', cross_max_lcores)
endif
+ cross_has_libnuma = meson.get_cross_property('has_libnuma', '')
+ if cross_has_libnuma != ''
+ has_libnuma = cross_has_libnuma
+ endif
endif
max_lcores = get_option('max_lcores')