[PATCH v8 2/8] lib/pmu: export only necessary arch headers
Tomasz Duszynski
tduszynski at marvell.com
Tue Jul 22 14:00:35 CEST 2025
Install only architecture specific headers to avoid header pollution.
Signed-off-by: Tomasz Duszynski <tduszynski at marvell.com>
---
lib/pmu/meson.build | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/pmu/meson.build b/lib/pmu/meson.build
index bcb6d10f1a..53013d0ed6 100644
--- a/lib/pmu/meson.build
+++ b/lib/pmu/meson.build
@@ -10,13 +10,13 @@ endif
headers = files('rte_pmu.h')
sources = files('pmu.c')
-indirect_headers += files(
- 'rte_pmu_pmc_arm64.h',
- 'rte_pmu_pmc_x86_64.h',
-)
-
if dpdk_conf.has('RTE_ARCH_ARM64')
+ indirect_headers += files('rte_pmu_pmc_arm64.h')
sources += files('pmu_arm64.c')
endif
+if dpdk_conf.has('RTE_ARCH_X86_64')
+ indirect_headers += files('rte_pmu_pmc_x86_64.h')
+endif
+
deps += ['log']
--
2.34.1
More information about the dev
mailing list