[OE-core] [PATCH] utils.bbclass: Support applications with keys in check_app_exist function
Nikolay Merinov
n.merinov at inango-systems.com
Thu Oct 5 07:46:07 UTC 2017
check_app_exist function must support cases when "app" variable defined
as "progname --keys". For example BUILD_CC="gcc -march=x86-64" must
pass sanity check.
Signed-off-by: Nikolay Merinov <n.merinov at inango-systems.com>
---
meta/classes/utils.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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))
--
2.14.2
More information about the Openembedded-core
mailing list