All of lore.kernel.org
 help / color / mirror / Atom feed
* [master] kernel.bbclass: Copy bounds.h only if it exists, needed for 2.6.x.
@ 2012-07-30 22:03 Leon Woestenberg
  2012-07-31 11:11 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Leon Woestenberg @ 2012-07-30 22:03 UTC (permalink / raw)
  To: poky; +Cc: Leon Woestenberg

From: Leon Woestenberg <leon@sidebranch.com>

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>
---
 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
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-31 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 22:03 [master] kernel.bbclass: Copy bounds.h only if it exists, needed for 2.6.x Leon Woestenberg
2012-07-31 11:11 ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.