aboutsummaryrefslogtreecommitdiffstats
path: root/meta-mel/conf/distro/include/wic-bmap.inc
blob: d77b0b8368e8b9a8c88b986e896658e5bba7f684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------------------------------------------------

# If a wic image type is enabled, also enable wic.bmap
python add_wic_bmap () {
    image_fstypes = d.getVar('IMAGE_FSTYPES', True).split()
    if any(f == 'wic' or f.startswith('wic.') for f in image_fstypes):
        d.setVar('IMAGE_FSTYPES', " ".join (image_fstypes + ['wic.bmap']))
}
add_wic_bmap[eventmask] = "bb.event.ConfigParsed"
addhandler add_wic_bmap