summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-21 12:29:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-21 12:37:55 +0000
commitda2764e1843239b188a9c5e6cc7105ef6f7d77dc (patch)
tree1606bfaf060270a492ab4c4d04ca138724471a75 /meta/recipes-kernel
parent76b7e81ff75e638175e2b82ff7c06d5bd6ea4b0b (diff)
downloadpoky-da2764e1843239b188a9c5e6cc7105ef6f7d77dc.tar.gz
kernel-devsrc: Handle ppc crtsaves.o explictly for now
Resolve kernel module build failures for qemuppc by including crtsaves.o. I'm not particularly happy to be doing this, it should perhaps be contained in the kernel-dev package. Until the overlap between kernel-devsrc and kernel-dev is resolved, this at least removed the regressions. (From OE-Core rev: 5fa888894384eff18df77d0a5aaa007eba1406c8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/linux/kernel-devsrc.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 2872f17a3f..1557c276bb 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -46,6 +46,14 @@ do_install() {
46 cd ${S} 46 cd ${S}
47 find . -type d -name '.git*' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir 47 find . -type d -name '.git*' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir
48 oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts 48 oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts
49
50 # As of Linux kernel version 3.0.1, the clean target removes
51 # arch/powerpc/lib/crtsavres.o which is present in
52 # KBUILD_LDFLAGS_MODULE, making it required to build external modules.
53 if [ ${ARCH} = "powerpc" ]; then
54 mkdir -p $kerneldir/arch/powerpc/lib/
55 cp ${S}/arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
56 fi
49} 57}
50 58
51PACKAGES = "kernel-devsrc" 59PACKAGES = "kernel-devsrc"