]> code.ossystems Code Review - openembedded-core.git/commitdiff
utils.bbclass: Support applications with arguments in check_app_exist()
authorNikolay Merinov <n.merinov@inango-systems.com>
Thu, 5 Oct 2017 07:46:07 +0000 (12:46 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Oct 2017 11:03:34 +0000 (12:03 +0100)
check_app_exist function must support cases when "app" variable defined
as "progname --args". For example BUILD_CC="gcc -march=x86-64" must
pass sanity check.

Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/utils.bbclass

index 081e662da1dfd544124d4d33107a64f0ee1087cc..8e07eac07a39729ccbda48015d9ab063f55b31d8 100644 (file)
@@ -320,7 +320,7 @@ hardlinkdir () {
 
 
 def check_app_exists(app, d):
-    app = d.expand(app).strip()
+    app = d.expand(app).split()[0].strip()
     path = d.getVar('PATH')
     return bool(bb.utils.which(path, app))