mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
kernel.bbclass: enable a link for external module building
Even though the kernel-dev package provides the required support for building external kernel modules on the target, some commonly used scripts and utilities fail as they are not finding the kernel module build support files at the desired location. Create the /lib/modules/<kernel-version>/build link on target pointing to the sources provided by the kernel-dev package, to fix the issue. Fixes Bug: [YOCTO #2968] (From OE-Core rev: aafa4bc896eb944aa4fc406807dd7e02f4b9b7ba) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ff89dfb570
commit
3224472c68
@@ -213,6 +213,7 @@ kernel_do_install() {
|
||||
#
|
||||
kerneldir=${D}${KERNEL_SRC_PATH}
|
||||
install -d $kerneldir
|
||||
ln -sf ${KERNEL_SRC_PATH} "${D}/lib/modules/${KERNEL_VERSION}/build"
|
||||
|
||||
#
|
||||
# Store the kernel version in sysroots for module-base.bbclass
|
||||
@@ -346,7 +347,7 @@ PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev kernel-mod
|
||||
FILES_${PN} = ""
|
||||
FILES_kernel-base = "/lib/modules/${KERNEL_VERSION}/modules.order /lib/modules/${KERNEL_VERSION}/modules.builtin"
|
||||
FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*"
|
||||
FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}"
|
||||
FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} /lib/modules/${KERNEL_VERSION}/build"
|
||||
FILES_kernel-vmlinux = "/boot/vmlinux*"
|
||||
FILES_kernel-modules = ""
|
||||
RDEPENDS_kernel = "kernel-base"
|
||||
|
||||
Reference in New Issue
Block a user