[OE-core] [PATCH 1/3] base.class: warn for invalid PACKAGECONFIG
Robert Yang
liezhi.yang at windriver.com
Thu Jun 11 09:08:41 UTC 2015
There may be typos or out of date values in PACKAGECONFIG, check and
warn them.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/classes/base.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 8637f9f..46762d9 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -341,6 +341,11 @@ python () {
if pkgconfigflags:
pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
pn = d.getVar("PN", True)
+
+ for pconfig in pkgconfig:
+ if pconfig not in pkgconfigflags:
+ bb.warn("%s: invalid PACKAGECONFIG: %s" % (pn, pconfig))
+
mlprefix = d.getVar("MLPREFIX", True)
def expandFilter(appends, extension, prefix):
--
1.7.9.5
More information about the Openembedded-core
mailing list