[oe-commits] Leon Woestenberg : kernel.bbclass: Copy bounds.h only if it exists, needed for 2.6.x.

git at git.openembedded.org git at git.openembedded.org
Tue Jul 31 07:05:14 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 02ac0d1b65389e1779d5f95047f761d7a82ef7a4
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=02ac0d1b65389e1779d5f95047f761d7a82ef7a4

Author: Leon Woestenberg <leon at sidebranch.com>
Date:   Tue Jul 31 00:03:27 2012 +0200

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 at sidebranch.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/kernel.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index ab984e3..1d8dff9 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





More information about the Openembedded-commits mailing list