diff mbox series

[2/2] linux-yocto-dev: enable BSP config audit reporting

Message ID 20260722035139.1349872-2-bruce.ashfield@gmail.com
State New
Headers show
Series [1/2] linux-yocto-dev: bump to v7.2 | expand

Commit Message

Bruce Ashfield July 22, 2026, 3:51 a.m. UTC
From: Bruce Ashfield <bruce.ashfield@gmail.com>

linux-yocto-dev did not set KCONF_BSP_AUDIT_LEVEL, so it inherited the
kernel-yocto.bbclass default of 0. That silently suppresses the 'invalid
fragment elements' and 'redefinition' audit categories: do_kernel_configcheck
still runs and still writes .kernel-meta/cfg/{invalid,redefinition}.txt, but
nothing is ever reported to the user.

This was hiding real breakage. Five config options removed upstream in v7.1
(CONFIG_HAMRADIO, CONFIG_CRYPTO_MICHAEL_MIC, CONFIG_ISDN, CONFIG_ISDN_CAPI,
CONFIG_NF_CT_PROTO_UDPLITE) sat stale in the kernel-cache fragments for a
full release cycle without a single warning.

The versioned recipes already set this (linux-yocto and linux-yocto-rt use
1, linux-yocto-tiny uses 2); the dev recipe being the sole exception is
backwards, since the dev kernel tracks a moving upstream and is precisely
where dropped symbols should surface first.

Set it to 1 to match linux-yocto.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
---
 meta/recipes-kernel/linux/linux-yocto-dev.bb | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Purdie July 22, 2026, 6:49 a.m. UTC | #1
On Tue, 2026-07-21 at 23:51 -0400, bruce.ashfield@gmail.com wrote:
> From: Bruce Ashfield <bruce.ashfield@gmail.com>
> 
> linux-yocto-dev did not set KCONF_BSP_AUDIT_LEVEL, so it inherited the
> kernel-yocto.bbclass default of 0. That silently suppresses the 'invalid
> fragment elements' and 'redefinition' audit categories: do_kernel_configcheck
> still runs and still writes .kernel-meta/cfg/{invalid,redefinition}.txt, but
> nothing is ever reported to the user.
> 
> This was hiding real breakage. Five config options removed upstream in v7.1
> (CONFIG_HAMRADIO, CONFIG_CRYPTO_MICHAEL_MIC, CONFIG_ISDN, CONFIG_ISDN_CAPI,
> CONFIG_NF_CT_PROTO_UDPLITE) sat stale in the kernel-cache fragments for a
> full release cycle without a single warning.
> 
> The versioned recipes already set this (linux-yocto and linux-yocto-rt use
> 1, linux-yocto-tiny uses 2); the dev recipe being the sole exception is
> backwards, since the dev kernel tracks a moving upstream and is precisely
> where dropped symbols should surface first.
> 
> Set it to 1 to match linux-yocto.
> 
> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> ---
>  meta/recipes-kernel/linux/linux-yocto-dev.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb
> index f82f3c326b..ef6e1e0759 100644
> --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
> +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
> @@ -16,6 +16,7 @@ include recipes-kernel/linux/linux-yocto-dev-revisions.inc
>  
>  KBRANCH = "v7.2/standard/base"
>  KMETA = "kernel-meta"
> +KCONF_BSP_AUDIT_LEVEL = "1"


Should we change the default now this is well established?

Cheers,

Richard
diff mbox series

Patch

diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb
index f82f3c326b..ef6e1e0759 100644
--- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
@@ -16,6 +16,7 @@  include recipes-kernel/linux/linux-yocto-dev-revisions.inc
 
 KBRANCH = "v7.2/standard/base"
 KMETA = "kernel-meta"
+KCONF_BSP_AUDIT_LEVEL = "1"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name=machine;protocol=https \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA};protocol=https"