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>
This commit is contained in:
Robert Yang
2015-06-11 02:08:41 -07:00
committed by Richard Purdie
parent e344dc152d
commit 04a1fea952

View 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):