lib: add reasons for components being disabled

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>
Acked-by: Luca Boccassi <bluca@debian.org>
This commit is contained in:
Bruce Richardson 2019-06-05 21:22:40 +01:00 committed by Thomas Monjalon
parent 8baad6f884
commit 759a5fb18e
4 changed files with 4 additions and 0 deletions

View File

@ -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')

View File

@ -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',

View File

@ -12,4 +12,5 @@ if jansson.found()
dpdk_app_link_libraries += ['telemetry']
else
build = false
reason = 'missing dependency "jansson"'
endif

View File

@ -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)