Building script: verify 'LDD' key exists 21/4021/1
authorYaroslav Brustinov <[email protected]>
Sun, 27 Nov 2016 11:37:03 +0000 (13:37 +0200)
committerYaroslav Brustinov <[email protected]>
Sun, 27 Nov 2016 11:37:03 +0000 (13:37 +0200)
Signed-off-by: Yaroslav Brustinov <[email protected]>
linux_dpdk/ws_main.py

index b89328a..28a8f4c 100755 (executable)
@@ -101,6 +101,8 @@ def options(opt):
 
 
 def check_ibverbs_deps(bld):
+    if 'LDD' not in bld.env or not len(bld.env['LDD']):
+        bld.fatal('Please run configure. Missing key LDD.')
     cmd = '%s %s/external_libs/ibverbs/libibverbs.so' % (bld.env['LDD'][0], top)
     ret, out = getstatusoutput(cmd)
     if ret or not out: