From: Adrian Freihofer <[email protected]> The kernel-source-with-debug-src debug-with-srcpkg split style stashes the kernel's source under the -src package, but that package was never added to PACKAGES. It therefore does not exist as an ordinary, installable package: the only way it ever ends up on an image is through the package complementary mechanism, which is not suitable for the kernel. Not even kernel-dbg, which the complementary mechanism is meant for, can be pulled in that way for the kernel, since IMAGE_INSTALL_COMPLEMENTARY on *-dbg matches against PN, and the kernel recipe's packages are named after KERNEL_PACKAGE_NAME rather than PN.
The result was that -src got installed on debug images most likely by accident, as a side effect of the complementary glob, rather than because anyone asked for it. Add -src to PACKAGES when PACKAGE_DEBUG_SPLIT_STYLE is "debug-with-srcpkg", so it becomes a regular package that can be requested through IMAGE_INSTALL or RDEPENDS like any other. Signed-off-by: Adrian Freihofer <[email protected]> --- meta/classes-recipe/kernel.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index 0a6d754108..3c887a5cc5 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass @@ -678,7 +678,8 @@ EXPORT_FUNCTIONS do_compile do_transform_kernel do_transform_bundled_initramfs d # kernel-base becomes kernel-${KERNEL_VERSION} # kernel-image becomes kernel-image-${KERNEL_VERSION} -PACKAGES = "${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base ${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image ${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules ${KERNEL_PACKAGE_NAME}-dbg" +PACKAGES = "${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base ${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image ${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules ${KERNEL_PACKAGE_NAME}-dbg \ + ${@d.getVar('PN') + '-src' if d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-with-srcpkg' else ''}" FILES:${PN} = "" FILES:${KERNEL_PACKAGE_NAME}-base = "${KERNEL_MODULE_INSTALL_PREFIX}/modules.order ${KERNEL_MODULE_INSTALL_PREFIX}/modules.builtin ${KERNEL_MODULE_INSTALL_PREFIX}/modules.builtin.modinfo" FILES:${KERNEL_PACKAGE_NAME}-image = "" -- 2.55.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246554): https://lists.openembedded.org/g/openembedded-core/message/246554 Mute This Topic: https://lists.openembedded.org/mt/121400003/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
