]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: restore kernel-abiversion file
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 22 Jun 2011 15:41:34 +0000 (17:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jun 2011 12:34:09 +0000 (13:34 +0100)
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.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Acked-by: Darren Hart <dvhart@linux.intel.com>
meta/classes/kernel.bbclass

index aaf341b75c1529bab97e9cab81a75294bc0652a0..9381b3a0f4a90083018ff3579f52a4e39cfe877e 100644 (file)
@@ -122,6 +122,12 @@ kernel_do_install() {
        kerneldir=${STAGING_KERNEL_DIR}
        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