All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] don't run make clean on kernel_do_install
@ 2011-04-23 14:47 Koen Kooi
  2011-04-25 17:10 ` Darren Hart
  0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2011-04-23 14:47 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer
  Cc: Bruce Ashfield, Darren Hart

Hi,

Over the holidays I was trying to build some externel kernel modules and they failed to build because linux/bounds.h wasn't in sysroots.

I did this quick hack to work around it:

--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -159,7 +159,8 @@ kernel_do_install() {
        # we clean the scripts dir while leaving the generated config
        # and include files.
        #
-       oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean
+       find $kerneldir -name "*.o" -delete
+       #oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean
        make -C $kerneldir _mrproper_scripts
        find $kerneldir -path $kerneldir/scripts -prune -o -name "*.[csS]" -exec rm '{}' \;
        find $kerneldir/Documentation -name "*.txt" -exec rm '{}' \;

I'm not convinced that the above is the right way to solve it, but I lack the required kbuild knowledge to come up with a better one. Does anyone have a hint on how to approach this problem in a better way?

regards,

Koen


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-28 15:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-23 14:47 [RFC] don't run make clean on kernel_do_install Koen Kooi
2011-04-25 17:10 ` Darren Hart
2011-04-25 18:28   ` Koen Kooi
2011-04-28  8:30   ` Koen Kooi
2011-04-28 15:26     ` Darren Hart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.