diff options
Diffstat (limited to 'meta-yocto/classes/poky-sanity.bbclass')
| -rw-r--r-- | meta-yocto/classes/poky-sanity.bbclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-yocto/classes/poky-sanity.bbclass b/meta-yocto/classes/poky-sanity.bbclass new file mode 100644 index 0000000000..1c7514fdca --- /dev/null +++ b/meta-yocto/classes/poky-sanity.bbclass | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | python check_bblayers_conf_append() { | ||
| 2 | if current_lconf != lconf_version: | ||
| 3 | if current_lconf == 5: | ||
| 4 | index, meta_yocto_line = find_line('meta-yocto\s*\\\\\\n', lines) | ||
| 5 | if meta_yocto_line: | ||
| 6 | lines.insert(index + 1, meta_yocto_line.replace('meta-yocto', | ||
| 7 | 'meta-yocto-bsp')) | ||
| 8 | else: | ||
| 9 | sys.exit() | ||
| 10 | |||
| 11 | index, line = find_line('LCONF_VERSION', lines) | ||
| 12 | current_lconf += 1 | ||
| 13 | lines[index] = 'LCONF_VERSION = "%d"\n' % current_lconf | ||
| 14 | with open(bblayers_fn, "w") as f: | ||
| 15 | f.write(''.join(lines)) | ||
| 16 | } | ||
