]> git.droids-corp.org - dpdk.git/commitdiff
lib: add reasons for components being disabled
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 5 Jun 2019 20:22:40 +0000 (21:22 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 2 Jul 2019 21:21:05 +0000 (23:21 +0200)
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>
lib/librte_kni/meson.build
lib/librte_power/meson.build
lib/librte_telemetry/meson.build
lib/librte_vhost/meson.build

index 400af9a4d3b2ec045d38bb99d41f5518444e1f00..41fa2e39bbecff5db8c69b12c4adf06aa87e07b9 100644 (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')
index cc6c30075deda1b5c920e6042770a89853c33782..cdf08f6df39ddacc31e18f7f96266509fac03808 100644 (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',
index cafb26f08b13dab140cc45c4902d343526824ed0..3e7db4f193a67409698795def924e2cc45eb9d5b 100644 (file)
@@ -12,4 +12,5 @@ if jansson.found()
        dpdk_app_link_libraries += ['telemetry']
 else
        build = false
+       reason = 'missing dependency "jansson"'
 endif
index 3090bbe085cf737551a5ca9502f4f16c69110ed8..cb1123ae35ee5cdde3fd7b22f2d7c2ceeb068493 100644 (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)