diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-08-20 13:19:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-20 16:53:17 +0100 |
commit | 2b6268b5f54117027eb3c409f4fe257f447e6720 (patch) | |
tree | 7272406ab82b4f941f590962873c921411513d24 /meta/classes/kernel.bbclass | |
parent | 07cc3dd4e8a7bddc5af53364258cfa6b33c415e7 (diff) | |
download | poky-2b6268b5f54117027eb3c409f4fe257f447e6720.tar.gz |
kernel.bbclass: Preserve generated headers only if they exist
* I have 2.6.37 kernel without this directory and do_install now fails
after 813256bf7bb6e26d542d5f769e2802564116ebe5
(From OE-Core rev: 9a83afe0794e96590aee374555efea91b3085b91)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index b24ab1a3f1..f34e63263a 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -191,8 +191,10 @@ kernel_do_install() { | |||
191 | if [ -f include/generated/bounds.h ]; then | 191 | if [ -f include/generated/bounds.h ]; then |
192 | cp include/generated/bounds.h $kerneldir/include/generated/bounds.h | 192 | cp include/generated/bounds.h $kerneldir/include/generated/bounds.h |
193 | fi | 193 | fi |
194 | mkdir -p $kerneldir/arch/${ARCH}/include/generated/ | 194 | if [ -d arch/${ARCH}/include/generated ]; then |
195 | cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ | 195 | mkdir -p $kerneldir/arch/${ARCH}/include/generated/ |
196 | cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ | ||
197 | fi | ||
196 | 198 | ||
197 | # Remove the following binaries which cause strip or arch QA errors | 199 | # Remove the following binaries which cause strip or arch QA errors |
198 | # during do_package for cross-compiled platforms | 200 | # during do_package for cross-compiled platforms |