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:51:23 +0100 |
commit | 9a83afe0794e96590aee374555efea91b3085b91 (patch) | |
tree | 385b1aff4b08d732395989243c5140b1353ed3f1 | |
parent | b6bc580f1cf56c2e771e87dfeadbb1e5d8416fce (diff) | |
download | openembedded-core-9a83afe0794e96590aee374555efea91b3085b91.tar.gz openembedded-core-9a83afe0794e96590aee374555efea91b3085b91.tar.bz2 openembedded-core-9a83afe0794e96590aee374555efea91b3085b91.zip |
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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() { if [ -f include/generated/bounds.h ]; then cp include/generated/bounds.h $kerneldir/include/generated/bounds.h fi - mkdir -p $kerneldir/arch/${ARCH}/include/generated/ - cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ + if [ -d arch/${ARCH}/include/generated ]; then + mkdir -p $kerneldir/arch/${ARCH}/include/generated/ + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ + fi # Remove the following binaries which cause strip or arch QA errors # during do_package for cross-compiled platforms |