summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2014-09-30 14:40:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-06 15:15:51 +0100
commit3224472c68865714716305dfbc8efaa59f73958e (patch)
tree5c49fab189d8b3614f89b4d0fd2246c8cb7ab918 /meta/classes/kernel.bbclass
parentff89dfb570ea730c9508b3fb5179a9acdc3f119a (diff)
downloadpoky-3224472c68865714716305dfbc8efaa59f73958e.tar.gz
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>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 0782923fcb..f300fa3eb6 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -213,6 +213,7 @@ kernel_do_install() {
213 # 213 #
214 kerneldir=${D}${KERNEL_SRC_PATH} 214 kerneldir=${D}${KERNEL_SRC_PATH}
215 install -d $kerneldir 215 install -d $kerneldir
216 ln -sf ${KERNEL_SRC_PATH} "${D}/lib/modules/${KERNEL_VERSION}/build"
216 217
217 # 218 #
218 # Store the kernel version in sysroots for module-base.bbclass 219 # 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
346FILES_${PN} = "" 347FILES_${PN} = ""
347FILES_kernel-base = "/lib/modules/${KERNEL_VERSION}/modules.order /lib/modules/${KERNEL_VERSION}/modules.builtin" 348FILES_kernel-base = "/lib/modules/${KERNEL_VERSION}/modules.order /lib/modules/${KERNEL_VERSION}/modules.builtin"
348FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*" 349FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*"
349FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}" 350FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} /lib/modules/${KERNEL_VERSION}/build"
350FILES_kernel-vmlinux = "/boot/vmlinux*" 351FILES_kernel-vmlinux = "/boot/vmlinux*"
351FILES_kernel-modules = "" 352FILES_kernel-modules = ""
352RDEPENDS_kernel = "kernel-base" 353RDEPENDS_kernel = "kernel-base"