diff options
Diffstat (limited to 'meta-yocto')
-rw-r--r-- | meta-yocto/classes/poky-sanity.bbclass | 16 | ||||
-rw-r--r-- | meta-yocto/conf/distro/poky.conf | 3 |
2 files changed, 19 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 | } | ||
diff --git a/meta-yocto/conf/distro/poky.conf b/meta-yocto/conf/distro/poky.conf index f7b9e99c71..8489e56d8a 100644 --- a/meta-yocto/conf/distro/poky.conf +++ b/meta-yocto/conf/distro/poky.conf | |||
@@ -98,6 +98,9 @@ BB_SIGNATURE_HANDLER ?= 'OEBasicHash' | |||
98 | # | 98 | # |
99 | OELAYOUT_ABI = "8" | 99 | OELAYOUT_ABI = "8" |
100 | 100 | ||
101 | # add poky sanity bbclass | ||
102 | INHERIT += "poky-sanity" | ||
103 | |||
101 | #WARN_QA = "unsafe-references-in-binaries unsafe-references-in-scripts" | 104 | #WARN_QA = "unsafe-references-in-binaries unsafe-references-in-scripts" |
102 | WARN_QA = "" | 105 | WARN_QA = "" |
103 | ERROR_QA = "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms useless-rpaths rpaths staticdev ldflags" | 106 | ERROR_QA = "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms useless-rpaths rpaths staticdev ldflags" |