base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
The FOO[doc] is set in meta/conf/documentation.conf, we need remove it from d.getVarFlags()'s return dict when it causes many loops. (From OE-Core rev: 595a7af8d0a52b24e2bdb5c373c64d27b54bb25b) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1df8af4248
commit
b741780d43
|
@ -349,6 +349,8 @@ python () {
|
|||
# PACKAGECONFIG ??= "<default options>"
|
||||
# PACKAGECONFIG[foo] = "--enable-foo,--disable-foo,foo_depends,foo_runtime_depends"
|
||||
pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
|
||||
# Remove PACKAGECONFIG[doc]
|
||||
pkgconfigflags.pop('doc', None)
|
||||
if pkgconfigflags:
|
||||
pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
|
||||
pn = d.getVar("PN", True)
|
||||
|
|
|
@ -28,6 +28,8 @@ python blacklist_multilib_eventhandler() {
|
|||
prefixes.append(eext[1])
|
||||
|
||||
blacklists = e.data.getVarFlags('PNBLACKLIST') or {}
|
||||
# Remove PNBLACKLIST[doc]
|
||||
blacklists.pop('doc', None)
|
||||
for pkg, reason in blacklists.items():
|
||||
if pkg.endswith(("-native", "-crosssdk")) or pkg.startswith(("nativesdk-", "virtual/nativesdk-")) or 'cross-canadian' in pkg:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue