kernel.bbclass: restore kernel-abiversion file
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 22 Jun 2011 14:17:45 +0000 (16:17 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:13:29 +0000 (08:13 -0800)
This fixes external module recipes that need $KERNEL_VERSION. It got removed by

commit a9d41062e24a6b99661b3a5256f369b557433607
Author: Darren Hart <dvhart@linux.intel.com>
Date:   Tue Mar 8 17:09:10 2011 -0800

kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules

seemingly as an oversight.

(From meta-openembedded rev: c6c282daa0cfd6459a31a001c53e724f54c89d9d)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/classes/kernel.bbclass

index 7498c2c..743ca68 100644 (file)
@@ -135,6 +135,12 @@ kernel_do_install() {
        install -d $kerneldir
 
        #
+       # Store the kernel version in sysroots for module-base.bbclass
+       #
+
+       echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion
+
+       #
        # Copy the entire source tree. In case an external build directory is
        # used, copy the build directory over first, then copy over the source
        # dir. This ensures the original Makefiles are used and not the