[04/10] drivers/common: add reasons for components being disabled
Checks
Commit Message
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.richardson@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(-)
@@ -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')
@@ -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)
@@ -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',