For each driver 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.richard...@intel.com>
---
 drivers/common/dpaax/meson.build | 3 ++-
 drivers/common/mvep/meson.build  | 1 +
 drivers/common/qat/meson.build   | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/common/dpaax/meson.build b/drivers/common/dpaax/meson.build
index 78378e2a6..a315e7786 100644
--- a/drivers/common/dpaax/meson.build
+++ b/drivers/common/dpaax/meson.build
@@ -4,7 +4,8 @@
 allow_experimental_apis = true
 
 if not is_linux
-        build = false
+       build = false
+       reason = 'only supported on linux'
 endif
 
 sources = files('dpaax_iova_table.c')
diff --git a/drivers/common/mvep/meson.build b/drivers/common/mvep/meson.build
index 8ccfacb3f..8df4bc6e0 100644
--- a/drivers/common/mvep/meson.build
+++ b/drivers/common/mvep/meson.build
@@ -10,6 +10,7 @@ inc_dir = path + '/include'
 lib = cc.find_library('libmusdk', dirs: [lib_dir], required: false)
 if not lib.found()
        build = false
+       reason = 'missing dependency, "libmusdk"'
 else
        ext_deps += lib
        includes += include_directories(inc_dir)
diff --git a/drivers/common/qat/meson.build b/drivers/common/qat/meson.build
index 80b6b25a8..8de249289 100644
--- a/drivers/common/qat/meson.build
+++ b/drivers/common/qat/meson.build
@@ -4,6 +4,7 @@
 # This does not build a driver, but instead holds common files for
 # the crypto and compression drivers.
 build = false
+reason = '' # sentinal value to suppress printout
 qat_deps = ['bus_pci']
 qat_sources = files('qat_common.c',
                'qat_qp.c',
-- 
2.21.0

Reply via email to