diff options
-rw-r--r-- | meta/classes/multilib_global.bbclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/multilib_global.bbclass b/meta/classes/multilib_global.bbclass index aba0371648..c9869fd592 100644 --- a/meta/classes/multilib_global.bbclass +++ b/meta/classes/multilib_global.bbclass | |||
@@ -137,13 +137,11 @@ addhandler multilib_virtclass_handler_vendor | |||
137 | multilib_virtclass_handler_vendor[eventmask] = "bb.event.ConfigParsed" | 137 | multilib_virtclass_handler_vendor[eventmask] = "bb.event.ConfigParsed" |
138 | 138 | ||
139 | python multilib_virtclass_handler_global () { | 139 | python multilib_virtclass_handler_global () { |
140 | if not e.data: | ||
141 | return | ||
142 | |||
143 | variant = e.data.getVar("BBEXTENDVARIANT") | 140 | variant = e.data.getVar("BBEXTENDVARIANT") |
141 | if variant: | ||
142 | return | ||
144 | 143 | ||
145 | if isinstance(e, bb.event.RecipeParsed) and not variant: | 144 | if bb.data.inherits_class('kernel', e.data) or \ |
146 | if bb.data.inherits_class('kernel', e.data) or \ | ||
147 | bb.data.inherits_class('module-base', e.data) or \ | 145 | bb.data.inherits_class('module-base', e.data) or \ |
148 | (bb.data.inherits_class('allarch', e.data) and\ | 146 | (bb.data.inherits_class('allarch', e.data) and\ |
149 | not bb.data.inherits_class('packagegroup', e.data)): | 147 | not bb.data.inherits_class('packagegroup', e.data)): |
@@ -177,5 +175,5 @@ python multilib_virtclass_handler_global () { | |||
177 | } | 175 | } |
178 | 176 | ||
179 | addhandler multilib_virtclass_handler_global | 177 | addhandler multilib_virtclass_handler_global |
180 | multilib_virtclass_handler_global[eventmask] = "bb.event.RecipePreFinalise bb.event.RecipeParsed" | 178 | multilib_virtclass_handler_global[eventmask] = "bb.event.RecipeParsed" |
181 | 179 | ||