Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] kernel.bbclass: Preserve generated headers
@ 2012-07-31 15:10 Khem Raj
  2012-07-31 15:16 ` Bruce Ashfield
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Khem Raj @ 2012-07-31 15:10 UTC (permalink / raw)
  To: openembedded-core

asm/unistd.h includes asm/unistd_64.h on x86_64
and asm/unistd_32.h on i386 but these files are
generated files in 3.4 and when we do 'make clean' they get
deleted and it shows up as an error when building
external modules. May be its a 3.4 kernel bug may be not
but make clean should have left the tree in
a shape to build modules but it does not.

Probably we should run make modules_prepare after having
run make clean.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes/kernel.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index b19ed4c..4ac3d48 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -197,6 +197,8 @@ kernel_do_install() {
 	if [ -f include/generated/bounds.h ]; then
 		cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
 	fi
+	mkdir -p $kerneldir/arch/${ARCH}/include/generated/
+	cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
 
 	# Remove the following binaries which cause strip or arch QA errors
 	# during do_package for cross-compiled platforms
-- 
1.7.5.4




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

end of thread, other threads:[~2012-08-20 17:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 15:10 [PATCH] kernel.bbclass: Preserve generated headers Khem Raj
2012-07-31 15:16 ` Bruce Ashfield
2012-07-31 16:19   ` Darren Hart
2012-07-31 16:31     ` Bruce Ashfield
2012-07-31 16:44       ` Darren Hart
2012-07-31 16:18 ` Darren Hart
2012-08-08 14:36 ` Khem Raj
2012-08-16 18:22 ` Saul Wold
2012-08-16 18:50   ` Saul Wold
2012-08-20 16:57 ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox