* [PATCH 0/1] fix yocto bug 1276: qemuppc hello-mod fails to build
@ 2011-08-17 4:16 Darren Hart
2011-08-17 4:16 ` [PATCH 1/1] kernel: restore crtsavres.o to enable building external modules on powerpc Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2011-08-17 4:16 UTC (permalink / raw)
To: openembedded-core; +Cc: Darren Hart
The following changes since commit a21ff559e7c93e9da61104f4a33e42e6004189fd:
Fixup remaining bb.msg.domain users (2011-08-15 17:31:52 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dvhart/powerpc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dvhart/powerpc
Darren Hart (1):
kernel: restore crtsavres.o to enable building external modules on
powerpc
meta/classes/kernel.bbclass | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
--
1.7.6
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 1/1] kernel: restore crtsavres.o to enable building external modules on powerpc
2011-08-17 4:16 [PATCH 0/1] fix yocto bug 1276: qemuppc hello-mod fails to build Darren Hart
@ 2011-08-17 4:16 ` Darren Hart
2011-08-17 14:46 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2011-08-17 4:16 UTC (permalink / raw)
To: openembedded-core; +Cc: Darren Hart
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.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
---
meta/classes/kernel.bbclass | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 7dc9cc6..386b05e 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -159,6 +159,13 @@ kernel_do_install() {
find $kerneldir -path $kerneldir/scripts -prune -o -name "*.[csS]" -exec rm '{}' \;
find $kerneldir/Documentation -name "*.txt" -exec rm '{}' \;
+ # As of Linux kernel version 3.0.1, the clean target removes
+ # arch/powerpc/lib/crtsavres.o which is present in
+ # KBUILD_LDFLAGS_MODULE, making it required to build external modules.
+ if [ ${ARCH} = "powerpc" ]; then
+ cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
+ fi
+
# Remove the following binaries which cause strip errors
# during do_package for cross-compiled platforms
bin_files="arch/powerpc/boot/addnote arch/powerpc/boot/hack-coff \
--
1.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] kernel: restore crtsavres.o to enable building external modules on powerpc
2011-08-17 4:16 ` [PATCH 1/1] kernel: restore crtsavres.o to enable building external modules on powerpc Darren Hart
@ 2011-08-17 14:46 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-08-17 14:46 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Darren Hart
On Tue, 2011-08-16 at 21:16 -0700, Darren Hart wrote:
> 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.
>
> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
> CC: Tom Zanussi <tom.zanussi@intel.com>
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-17 14:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17 4:16 [PATCH 0/1] fix yocto bug 1276: qemuppc hello-mod fails to build Darren Hart
2011-08-17 4:16 ` [PATCH 1/1] kernel: restore crtsavres.o to enable building external modules on powerpc Darren Hart
2011-08-17 14:46 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox