aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorLeon Woestenberg <leon@sidebranch.com>2012-07-31 00:03:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-31 07:48:21 +0100
commit02ac0d1b65389e1779d5f95047f761d7a82ef7a4 (patch)
tree18cb4523da8a446b0925e606882692aa91812402 /meta/classes
parentab0187c13b2b0a041bf3d98c3a53bd3f45a624de (diff)
downloadopenembedded-core-contrib-02ac0d1b65389e1779d5f95047f761d7a82ef7a4.tar.gz
kernel.bbclass: Copy bounds.h only if it exists, needed for 2.6.x.
Linux 2.6.x kernels did not (all) have the bounds.h file, so copy only iff exists. Signed-off-by: Leon Woestenberg <leon@sidebranch.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index ab984e3e88..1d8dff9ada 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -188,7 +188,9 @@ kernel_do_install() {
fi
# Necessary for building modules like compat-wireless.
- cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
+ if [ -f include/generated/bounds.h ]; then
+ cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
+ fi
# Remove the following binaries which cause strip or arch QA errors
# during do_package for cross-compiled platforms