]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.class: warn for invalid PACKAGECONFIG
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 11 Jun 2015 09:08:41 +0000 (02:08 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Jun 2015 10:38:11 +0000 (11:38 +0100)
There may be typos or out of date values in PACKAGECONFIG, check and
warn them.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/base.bbclass

index 8637f9ffd6200b9eeea27c2b2089b031a414e684..46762d9cc59b5dd399d47886e6f1a28928b7d131 100644 (file)
@@ -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):