diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-06-11 02:08:41 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-23 11:46:57 +0100 |
commit | 04a1fea9520f29e7fe92d8f6301aa7a8600d76bf (patch) | |
tree | afdc5e514192750c8169390ababd2168e39eb192 /meta | |
parent | e344dc152d3833fdf8ff6efd028b1b462d417d73 (diff) | |
download | poky-04a1fea9520f29e7fe92d8f6301aa7a8600d76bf.tar.gz |
base.class: warn for invalid PACKAGECONFIG
There may be typos or out of date values in PACKAGECONFIG, check and
warn them.
(From OE-Core rev: be085657bbab34bb8a822682897f96871bb2d8f4)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/base.bbclass | 5 |
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 () { | |||
341 | if pkgconfigflags: | 341 | if pkgconfigflags: |
342 | pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split() | 342 | pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split() |
343 | pn = d.getVar("PN", True) | 343 | pn = d.getVar("PN", True) |
344 | |||
345 | for pconfig in pkgconfig: | ||
346 | if pconfig not in pkgconfigflags: | ||
347 | bb.warn("%s: invalid PACKAGECONFIG: %s" % (pn, pconfig)) | ||
348 | |||
344 | mlprefix = d.getVar("MLPREFIX", True) | 349 | mlprefix = d.getVar("MLPREFIX", True) |
345 | 350 | ||
346 | def expandFilter(appends, extension, prefix): | 351 | def expandFilter(appends, extension, prefix): |