Skip to contentSkip to conversation

kernel.bbclass: Copy bounds.h only if it exists, needed for 2.6.x.

master Applied Leon Woestenberg 2 participants 2 messages Jul 30, 2012 – Jul 31, 2012

lore
Share & tools
lore
#0 lore raw

From: Leon Woestenberg <[email protected]>

Linux 2.6.x kernels did not (all) have the bounds.h file, so copy only iff exists.

---
 meta/classes/kernel.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
meta/classes/kernel.bbclass +3 -1
index ab984e3..1d8dff9 100644
@@ -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
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 9 lines · Leon Woestenberg

From: Leon Woestenberg <[email protected]>

Linux 2.6.x kernels did not (all) have the bounds.h file, so copy only iff exists.

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

Merged to master, thanks.

Richard