diff options
author | Nikolay Merinov <n.merinov@inango-systems.com> | 2017-10-05 12:46:07 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-10-06 12:03:34 +0100 |
commit | 5193ebca0ca8864404fc750def0e738417d104c7 (patch) | |
tree | 9ccaf637d22a42f97f06c745b774f35091e3f175 | |
parent | 38c86302ebdf886b887165aff06560c63a1537b9 (diff) | |
download | openembedded-core-5193ebca0ca8864404fc750def0e738417d104c7.tar.gz openembedded-core-5193ebca0ca8864404fc750def0e738417d104c7.tar.bz2 openembedded-core-5193ebca0ca8864404fc750def0e738417d104c7.zip |
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 <n.merinov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/classes/utils.bbclass | 2 |
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 () { 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)) |