summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-07-31 08:10:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-19 10:45:55 +0100
commit0a0ffcf18bad914c2bdb52723e9f64baec1c5a4a (patch)
tree9d130d4af44d33ea96503ab4f0d9f619ce7bb09c /meta/classes/kernel.bbclass
parent771f89498cf46cf04613407641f2bfd9cfa7d1e3 (diff)
downloadpoky-0a0ffcf18bad914c2bdb52723e9f64baec1c5a4a.tar.gz
kernel.bbclass: Preserve generated headers
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. (From OE-Core rev: 813256bf7bb6e26d542d5f769e2802564116ebe5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 0b970d7ba5..b24ab1a3f1 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -191,6 +191,8 @@ kernel_do_install() {
191 if [ -f include/generated/bounds.h ]; then 191 if [ -f include/generated/bounds.h ]; then
192 cp include/generated/bounds.h $kerneldir/include/generated/bounds.h 192 cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
193 fi 193 fi
194 mkdir -p $kerneldir/arch/${ARCH}/include/generated/
195 cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
194 196
195 # Remove the following binaries which cause strip or arch QA errors 197 # Remove the following binaries which cause strip or arch QA errors
196 # during do_package for cross-compiled platforms 198 # during do_package for cross-compiled platforms