summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-06-11 02:08:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-23 11:38:11 +0100
commitbe085657bbab34bb8a822682897f96871bb2d8f4 (patch)
tree09d684f014aad1befb920f474f9869816f8c4f95 /meta/classes/base.bbclass
parentf2a09e6170e68f4892f3c7cb9d27a4365efa94e8 (diff)
downloadopenembedded-core-be085657bbab34bb8a822682897f96871bb2d8f4.tar.gz
openembedded-core-be085657bbab34bb8a822682897f96871bb2d8f4.tar.bz2
openembedded-core-be085657bbab34bb8a822682897f96871bb2d8f4.zip
base.class: warn for invalid PACKAGECONFIG
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>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 8637f9ffd6..46762d9cc5 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):