mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

As stated in our top level license files, the license is MIT unless otherwise stated. Add SPDX identifers accordingly. Replace older license statementa with the standardised syntax. Also drop "All Rights Reserved" expression as it isn't used now, doesn't mean anything and is confusing. (From OE-Core rev: 081a391fe09a21265881e39a2a496e4e10b4f80b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
23 lines
601 B
Plaintext
23 lines
601 B
Plaintext
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
python mcextend_virtclass_handler () {
|
|
cls = e.data.getVar("BBEXTENDCURR")
|
|
variant = e.data.getVar("BBEXTENDVARIANT")
|
|
if cls != "mcextend" or not variant:
|
|
return
|
|
|
|
override = ":virtclass-mcextend-" + variant
|
|
|
|
e.data.setVar("PN", e.data.getVar("PN", False) + "-" + variant)
|
|
e.data.setVar("MCNAME", variant)
|
|
e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override)
|
|
}
|
|
|
|
addhandler mcextend_virtclass_handler
|
|
mcextend_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
|
|
|