summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorNikolay Merinov <n.merinov@inango-systems.com>2017-10-05 12:46:07 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-07 23:20:40 +0100
commit9f20263b5080172729d80b5355891ad2a44b80f4 (patch)
tree79543e5ff364fc24ee2b00aa40fe7ce6e19fbd89 /meta
parentf8be797a74016d5b8d8d15fc05ed9a6d70de0ef5 (diff)
downloadpoky-9f20263b5080172729d80b5355891ad2a44b80f4.tar.gz
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. (From OE-Core rev: 5193ebca0ca8864404fc750def0e738417d104c7) Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/utils.bbclass2
1 files changed, 1 insertions, 1 deletions
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 () {
320 320
321 321
322def check_app_exists(app, d): 322def check_app_exists(app, d):
323 app = d.expand(app).strip() 323 app = d.expand(app).split()[0].strip()
324 path = d.getVar('PATH') 324 path = d.getVar('PATH')
325 return bool(bb.utils.which(path, app)) 325 return bool(bb.utils.which(path, app))
326 326