From 9f20263b5080172729d80b5355891ad2a44b80f4 Mon Sep 17 00:00:00 2001 From: Nikolay Merinov Date: Thu, 5 Oct 2017 12:46:07 +0500 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/utils.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') 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)) -- cgit v1.2.3-54-g00ecf