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 09:13:02 +0000 |
commit | 78226efe72c8221206594c70fa1d8742d4097af1 (patch) | |
tree | fe883441cd1ef9d9d114486c10fe32b70739b12d /meta/classes | |
parent | bc0f58f0713ea7db3c4c24a7d321435934d745d7 (diff) | |
download | openembedded-core-78226efe72c8221206594c70fa1d8742d4097af1.tar.gz openembedded-core-78226efe72c8221206594c70fa1d8742d4097af1.tar.bz2 openembedded-core-78226efe72c8221206594c70fa1d8742d4097af1.zip |
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.
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>
Diffstat (limited to 'meta/classes')
-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 88356b1941..78c8c7cf00 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 |