From 759a5fb18edef646adac2533c49783294ad87559 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Wed, 5 Jun 2019 21:22:40 +0100 Subject: [PATCH] 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 Acked-by: Luca Boccassi --- 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(+) diff --git a/lib/librte_kni/meson.build b/lib/librte_kni/meson.build index 400af9a4d3..41fa2e39bb 100644 --- a/lib/librte_kni/meson.build +++ b/lib/librte_kni/meson.build @@ -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') diff --git a/lib/librte_power/meson.build b/lib/librte_power/meson.build index cc6c30075d..cdf08f6df3 100644 --- a/lib/librte_power/meson.build +++ b/lib/librte_power/meson.build @@ -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', diff --git a/lib/librte_telemetry/meson.build b/lib/librte_telemetry/meson.build index cafb26f08b..3e7db4f193 100644 --- a/lib/librte_telemetry/meson.build +++ b/lib/librte_telemetry/meson.build @@ -12,4 +12,5 @@ if jansson.found() dpdk_app_link_libraries += ['telemetry'] else build = false + reason = 'missing dependency "jansson"' endif diff --git a/lib/librte_vhost/meson.build b/lib/librte_vhost/meson.build index 3090bbe085..cb1123ae35 100644 --- a/lib/librte_vhost/meson.build +++ b/lib/librte_vhost/meson.build @@ -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) -- 2.20.1