aboutsummaryrefslogtreecommitdiffstats
path: root/meta-yocto/classes/poky-sanity.bbclass
blob: 1c7514fdca37a07a710088da45df9440c455185e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
python check_bblayers_conf_append() {
    if current_lconf != lconf_version:
        if current_lconf == 5:
            index, meta_yocto_line = find_line('meta-yocto\s*\\\\\\n', lines)
            if meta_yocto_line:
                lines.insert(index + 1, meta_yocto_line.replace('meta-yocto',
                                                                'meta-yocto-bsp'))
            else:
                sys.exit()

            index, line = find_line('LCONF_VERSION', lines)
            current_lconf += 1
            lines[index] = 'LCONF_VERSION = "%d"\n' % current_lconf
            with open(bblayers_fn, "w") as f:
                f.write(''.join(lines))
}