[02/10] lib: add reasons for components being disabled
Checks
Commit Message
For each library where we optionally disable it, add in the reason why it's
being disabled, so the user knows how to fix it.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
lib/librte_kni/meson.build | 1 +
lib/librte_power/meson.build | 1 +
lib/librte_telemetry/meson.build | 1 +
lib/librte_vhost/meson.build | 1 +
4 files changed, 4 insertions(+)
@@ -3,6 +3,7 @@
if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
build = false
+ reason = 'only supported on 64-bit linux'
endif
version = 2
sources = files('rte_kni.c')
@@ -3,6 +3,7 @@
if not is_linux
build = false
+ reason = 'only supported on linux'
endif
sources = files('rte_power.c', 'power_acpi_cpufreq.c',
'power_kvm_vm.c', 'guest_channel.c',
@@ -12,4 +12,5 @@ if jansson.found()
dpdk_app_link_libraries += ['telemetry']
else
build = false
+ reason = 'missing dependency "jansson"'
endif
@@ -3,6 +3,7 @@
if not is_linux
build = false
+ reason = 'only supported on linux'
endif
if has_libnuma == 1
dpdk_conf.set10('RTE_LIBRTE_VHOST_NUMA', true)