diff options
| author | Armin Kuster <akuster808@gmail.com> | 2021-06-02 02:05:05 +0000 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-06-06 13:03:37 -0700 |
| commit | c1235f6affb5c38e64b3a04533b8388969b194b2 (patch) | |
| tree | 08bc2b43e6b96e1f9b775de06240010586548272 /classes | |
| parent | 34d6b479b894441931d8819d1f7a4a43e1fbee2e (diff) | |
| download | meta-security-c1235f6affb5c38e64b3a04533b8388969b194b2.tar.gz | |
meta-security: add sanity check
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/sanity-meta-security.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/sanity-meta-security.bbclass b/classes/sanity-meta-security.bbclass new file mode 100644 index 0000000..b6c6b9c --- /dev/null +++ b/classes/sanity-meta-security.bbclass | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | addhandler security_bbappend_distrocheck | ||
| 2 | security_bbappend_distrocheck[eventmask] = "bb.event.SanityCheck" | ||
| 3 | python security_bbappend_distrocheck() { | ||
| 4 | skip_check = e.data.getVar('SKIP_META_SECUIRTY_SANITY_CHECK') == "1" | ||
| 5 | if 'security' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check: | ||
| 6 | bb.warn("You have included the meta-security layer, but \ | ||
| 7 | 'security' has not been enabled in your DISTRO_FEATURES. Some bbappend files \ | ||
| 8 | and preferred version setting may not take effect. See the meta-security README \ | ||
| 9 | for details on enabling security support.") | ||
| 10 | } | ||
