summaryrefslogtreecommitdiffstats
path: root/meta/classes/mcextend.bbclass
blob: a489eeb3c770bef7852452b5fa7b8ddaee527b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# 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"
+hotplug # # Named is operational # $named +named +dnsmasq +lwresd $network # # All remote filesystems are mounted (note in some cases /usr may # be remote. Most applications that care will probably require # both $local_fs and $remote_fs) # $remote_fs $local_fs +mountnfs # # System logger is operational # $syslog sysklogd # # SunRPC portmapper available # $portmap portmap # # The system time has been set correctly # $time hwclock # # Services which need to be interactive # <interactive> hostname udev