From patchwork Sat Apr 23 14:47:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC] don't run make clean on kernel_do_install Date: Sat, 23 Apr 2011 14:47:34 -0000 From: Koen Kooi X-Patchwork-Id: 2787 Message-Id: <73DFD7AC-9837-4C27-BB34-2B2AC7D1DD8B@dominion.thruhere.net> 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: 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 --- 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 '{}' \;