In yocto-kernel-cache, module signing feature does not set module auto-signing explicitly. Module auto-signing requires CONFIG_MODULE_SIG and CONFIG_MODULE_SIG_ALL. In the normal configuration flow, enabling CONFIG_MODULE_SIG is sufficient to enable module auto-signing because CONFIG_MODULE_SIG_ALL defaults to y. However, when KBUILD_DEFCONFIG is used in do_kernel_configme(), merge_config.sh is invoked with -n, which uses allnoconfig as the base configuration. In this case, CONFIG_MODULE_SIG_ALL is not enabled by its default value. This leaves module signature verification enabled while kernel modules are not automatically signed during modules_install. Explicitly enable CONFIG_MODULE_SIG_ALL to ensure that modules are automatically signed.
Relevant Yocto kernel cache configs: https://git.yoctoproject.org/yocto-kernel-cache/tree/features/module-signing/signing.cfg https://git.yoctoproject.org/yocto-kernel-cache/tree/features/module-signing/force-signing.cfg
Note that a patch has been submitted to linux-yocto@lists.yoctoproject.org regarding this: https://lists.yoctoproject.org/g/linux-yocto/topic/kernel_cache_patch/120774566
Once we get the oe-core srcrev kernel bump, please provide the linux-yocto and oe-core and close the issue.