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/compress/isal/meson.build | 3 ++-
 drivers/compress/zlib/meson.build | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/compress/isal/meson.build 
b/drivers/compress/isal/meson.build
index 94c10fd60..67b5c4aae 100644
--- a/drivers/compress/isal/meson.build
+++ b/drivers/compress/isal/meson.build
@@ -3,7 +3,8 @@
 
 dep = dependency('libisal', required: false)
 if not dep.found()
-       build =false
+       build = false
+       reason = 'missing dependency, "libisal"'
 endif
 
 deps += 'bus_vdev'
diff --git a/drivers/compress/zlib/meson.build 
b/drivers/compress/zlib/meson.build
index b036703c7..b1328c535 100644
--- a/drivers/compress/zlib/meson.build
+++ b/drivers/compress/zlib/meson.build
@@ -4,6 +4,7 @@
 dep = dependency('zlib', required: false)
 if not dep.found()
        build = false
+       reason = 'missing dependency, "zlib"'
 endif
 
 deps += 'bus_vdev'
-- 
2.21.0

Reply via email to