From: Nikolay Merinov Date: Thu, 5 Oct 2017 07:46:07 +0000 (+0500) Subject: utils.bbclass: Support applications with arguments in check_app_exist() X-Git-Tag: 2017-10~38 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5193ebca0ca8864404fc750def0e738417d104c7;p=openembedded-core.git utils.bbclass: Support applications with arguments in check_app_exist() 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 Signed-off-by: Ross Burton --- diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 081e662da1..8e07eac07a 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -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))