blob: a489eeb3c770bef7852452b5fa7b8ddaee527b7d [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
Brad Bishop19323692019-04-05 15:28:33 -04007python mcextend_virtclass_handler () {
8 cls = e.data.getVar("BBEXTENDCURR")
9 variant = e.data.getVar("BBEXTENDVARIANT")
10 if cls != "mcextend" or not variant:
11 return
12
13 override = ":virtclass-mcextend-" + variant
14
15 e.data.setVar("PN", e.data.getVar("PN", False) + "-" + variant)
16 e.data.setVar("MCNAME", variant)
17 e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override)
18}
19
20addhandler mcextend_virtclass_handler
21mcextend_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
22