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 /meta/classes | |
parent | 1a0343aa565f3c734be56380a5a7ed35f23a9052 (diff) | |
download | 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>
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() { | |||
252 | cp .config $kerneldir/ | 252 | cp .config $kerneldir/ |
253 | mkdir -p $kerneldir/include/config | 253 | mkdir -p $kerneldir/include/config |
254 | cp include/config/kernel.release $kerneldir/include/config/kernel.release | 254 | cp include/config/kernel.release $kerneldir/include/config/kernel.release |
255 | if [ -e include/linux/version.h ]; then | ||
256 | mkdir -p $kerneldir/include/linux | ||
257 | cp include/linux/version.h $kerneldir/include/linux/version.h | ||
258 | fi | ||
255 | 259 | ||
256 | # As of Linux kernel version 3.0.1, the clean target removes | 260 | # As of Linux kernel version 3.0.1, the clean target removes |
257 | # arch/powerpc/lib/crtsavres.o which is present in | 261 | # arch/powerpc/lib/crtsavres.o which is present in |