kernel: restore crtsavres.o to enable building external modules on powerpc
authorDarren Hart <dvhart@linux.intel.com>
Wed, 17 Aug 2011 04:16:53 +0000 (21:16 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2011 14:56:07 +0000 (15:56 +0100)
commit1d0b32efa269dc0c403b5c77fb1a39a93f57c00f
treea170b350e4b755fa1f0a20af0451b8c71f500329
parent293cef4eef60c0a6fa0fb28851a89b752de7eeb0
kernel: restore crtsavres.o to enable building external modules on powerpc

Fixes [YOCTO #1276]

As of Linux kernel version 3.0.1, and much earlier, the make clean target
removes arch/powerpc/lib/crtsavres.o. As this object is present in
KBUILD_LDFLAGS_MODULE, it is required to build external modules, and should
therefor not be removed by make clean.

While I do not advocate fixing buggy kernels in the generic kernel classes,
we should probably account for this one in kernel.bbclass as it affects
such a long list of kernel versions.

(From OE-Core rev: 2e83e6755441cb14bd907d306974338c15173189)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass