summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-07-31 14:53:58 -0700
committerScott Garman <scott.a.garman@intel.com>2012-07-31 15:07:07 -0700
commit6e9cfa4ba34d8899dfb271818ef30730de8353fa (patch)
tree9c1c6ff2c89aa4c80925e9b0dcb643e55ba64779 /meta/classes
parent5e141b2a7331f7ee8d9eedf02c4fc2ae5ed8d5ec (diff)
downloadopenembedded-core-6e9cfa4ba34d8899dfb271818ef30730de8353fa.tar.gz
openembedded-core-6e9cfa4ba34d8899dfb271818ef30730de8353fa.tar.bz2
openembedded-core-6e9cfa4ba34d8899dfb271818ef30730de8353fa.zip
kernel.bbclass: Copy bounds.h only if it exists, needed for 2.6.x.
From: Leon Woestenberg <leon@sidebranch.com> Linux 2.6.x kernels did not (all) have the bounds.h file, so copy only iff exists. (See OE-Core 02ac0d1b65389e1779d5f95047f761d7a82ef7a4) Signed-off-by: Leon Woestenberg <leon@sidebranch.com> Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index c21ab96ca9..5f6ff6672b 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -183,6 +183,11 @@ kernel_do_install() {
cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
fi
+ # Necessary for building modules like compat-wireless.
+ 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 errors
# during do_package for cross-compiled platforms
bin_files="arch/powerpc/boot/addnote arch/powerpc/boot/hack-coff \