mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f8be797a74
commit
9f20263b50
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user