blacklist_dynamic.bbclass: use getVar, not expand, for PNBLACKLIST_DYNAMIC

This ensures that _append/_prepend/_remove are also applied, so the user
can remove elements from the variable.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2018-03-03 01:18:30 +05:00
parent 8cd9e3e11f
commit 07ee6ebdb5

View File

@@ -34,7 +34,7 @@ python pnblacklist_dynamic_setup () {
localdata.setVar('OVERRIDES', localdata.getVar('OVERRIDES', False) + override)
bb.data.update_data(localdata)
to_blacklist |= set(filter(None, localdata.expand(blacklisted).split()))
to_blacklist |= set(filter(None, localdata.getVar('PNBLACKLIST_DYNAMIC').split()))
for blrecipe in to_blacklist:
d.setVarFlag('PNBLACKLIST', blrecipe, 'blacklisted by PNBLACKLIST_DYNAMIC')