BLACKLIST[pn] in a recipe does not work for multilib. Add SELFBLACKLIST specifically for use in recipes.
Signed-off-by: Joe Slater <jsla...@windriver.com> --- meta/classes/blacklist.bbclass | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/meta/classes/blacklist.bbclass b/meta/classes/blacklist.bbclass index a0141a8..a396536 100644 --- a/meta/classes/blacklist.bbclass +++ b/meta/classes/blacklist.bbclass @@ -11,6 +11,9 @@ # * To add a package to the blacklist, set: # PNBLACKLIST[pn] = "message" # +# * To have a recipe blacklist itself, in the recipe set: +# SELFBLACKLIST = "message" +# # Cope with PNBLACKLIST flags for multilib case addhandler blacklist_multilib_eventhandler @@ -38,8 +41,13 @@ python blacklist_multilib_eventhandler() { } python () { - blacklist = d.getVarFlag('PNBLACKLIST', d.getVar('PN', True), True) + reason = d.getVar('SELFBLACKLIST', True) + + if reason: + raise bb.parse.SkipPackage("Recipe blacklists itself!: %s" % (reason)) + + reason = d.getVarFlag('PNBLACKLIST', d.getVar('PN', True), True) - if blacklist: - raise bb.parse.SkipPackage("Recipe is blacklisted: %s" % (blacklist)) + if reason: + raise bb.parse.SkipPackage("Recipe is blacklisted: %s" % (reason)) } -- 1.7.9.5 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core