summaryrefslogtreecommitdiff
path: root/drivers/meson.build
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2018-07-20 14:28:25 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-07-26 10:04:59 +0200
commit203b61dc5e182ffe07e07e457d4f079dc06d1cb7 (patch)
tree84fc2f97524eb6eee9dd62938350d06283a34b55 /drivers/meson.build
parentc49825f8956bffcd23502a4dd98b3a32d66bb975 (diff)
downloaddpdk-next-eventdev-203b61dc5e182ffe07e07e457d4f079dc06d1cb7.zip
dpdk-next-eventdev-203b61dc5e182ffe07e07e457d4f079dc06d1cb7.tar.gz
dpdk-next-eventdev-203b61dc5e182ffe07e07e457d4f079dc06d1cb7.tar.xz
build: improve error message for missing dependency
When building a driver or library and a required internal dependency is missing, the error message printed was: Tried to get unknown variable "shared_rte_<libname>". However, a better way to handle this is to catch the missing variable earlier and convert it into a proper message, informing the user that the required dependency is missing, and most importantly, what library or driver wanted that dependency. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'drivers/meson.build')
-rw-r--r--drivers/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/meson.build b/drivers/meson.build
index 1737d86..27d66cf 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -61,6 +61,10 @@ foreach class:driver_classes
shared_objs = []
static_objs = []
foreach d:deps
+ if not is_variable('shared_rte_' + d)
+ error('Missing dependency ' + d +
+ ' for driver ' + lib_name)
+ endif
shared_objs += [get_variable('shared_rte_' + d)]
static_objs += [get_variable('static_rte_' + d)]
endforeach