diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2015-01-15 11:54:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-16 23:08:18 +0000 |
commit | 92725ad46f4d331bea6a2fa65964158d78a7add8 (patch) | |
tree | 6cfa5ff000c4995280446a700064bc8c7254d8f5 | |
parent | 1a0343aa565f3c734be56380a5a7ed35f23a9052 (diff) | |
download | ast2050-yocto-poky-92725ad46f4d331bea6a2fa65964158d78a7add8.zip ast2050-yocto-poky-92725ad46f4d331bea6a2fa65964158d78a7add8.tar.gz |
kernel.bbclass: When linux/version.h exists, copy it
Old Linux kernel versions rely on linux/version.h for modules; this
needs to be published for external modules to use. Copy it when
available.
(From OE-Core rev: 78226efe72c8221206594c70fa1d8742d4097af1)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/kernel.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 88356b1..78c8c7c 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -252,6 +252,10 @@ kernel_do_install() { cp .config $kerneldir/ mkdir -p $kerneldir/include/config cp include/config/kernel.release $kerneldir/include/config/kernel.release + if [ -e include/linux/version.h ]; then + mkdir -p $kerneldir/include/linux + cp include/linux/version.h $kerneldir/include/linux/version.h + fi # As of Linux kernel version 3.0.1, the clean target removes # arch/powerpc/lib/crtsavres.o which is present in |