kernel.bbclass: restore kernel-abiversion file

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 OE-Core rev: 6978774595f892e6a819ee64c932d475c67a6a0f)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Koen Kooi 2011-06-22 17:41:34 +02:00 committed by Richard Purdie
parent 1bf6ab4814
commit bff293c0dc
1 changed files with 6 additions and 0 deletions

View 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