]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Preserve generated headers
authorKhem Raj <raj.khem@gmail.com>
Tue, 31 Jul 2012 15:10:40 +0000 (08:10 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Aug 2012 09:31:08 +0000 (10:31 +0100)
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>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/kernel.bbclass

index 0b970d7ba521e3be9f7d289aa5aad36661cf0a68..b24ab1a3f1da185caff095abb7cca18b8db6da27 100644 (file)
@@ -191,6 +191,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