diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-06 21:29:10 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-07 13:31:26 +0000 |
commit | ab671b0da131f2d984c58f10f26acd7d0556ffab (patch) | |
tree | b38581f248745ab005313da573b1703e85bd20a3 /meta/classes-recipe | |
parent | b668c5323c4b09dc915fe4bd1dbbc35e4bee096b (diff) | |
download | poky-ab671b0da131f2d984c58f10f26acd7d0556ffab.tar.gz |
kernel-yocto: allow early exit to configuration audit
With the ability to tag raw configuration fragments as "hardware",
there is a chance that badly behaved fragments throw warnings or
cause other issues that are not applicable during development (or
you understand the risk).
Allow kernel configuration audit to be skipped if KMETA_AUDIT is
not set (by default it is), to provide a flag for control over
auditing.
(From OE-Core rev: a39a1f7cf78ad1ca07438bce634a47e970f25047)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/kernel-yocto.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass index e73adcc725..a5d89dc2c8 100644 --- a/meta/classes-recipe/kernel-yocto.bbclass +++ b/meta/classes-recipe/kernel-yocto.bbclass | |||
@@ -568,6 +568,11 @@ python do_config_analysis() { | |||
568 | python do_kernel_configcheck() { | 568 | python do_kernel_configcheck() { |
569 | import re, string, sys, subprocess | 569 | import re, string, sys, subprocess |
570 | 570 | ||
571 | audit_flag = d.getVar( "KMETA_AUDIT" ) | ||
572 | if not audit_flag: | ||
573 | bb.note( "kernel config audit disabled, skipping .." ) | ||
574 | return | ||
575 | |||
571 | s = d.getVar('S') | 576 | s = d.getVar('S') |
572 | 577 | ||
573 | # if KMETA isn't set globally by a recipe using this routine, use kgit to | 578 | # if KMETA isn't set globally by a recipe using this routine, use kgit to |