On 2010-12-10, Grant Edwards <[email protected]> wrote:
> After I've built and installed a kernel and the in-tree-modules, is
> there a way to clean the kernel source/build tree down to the minimal
> set of files needed to build out-of-tree modules?
>
> I think you would end up with the same files that you would have
> after doing "make modules_prepare" in a clean source tree with the
> addition of the Module.symvers file.
BTW, I did find where the kernel's top Makefile says:
@echo 'Cleaning targets:'
@echo ' clean - Remove most generated files but keep the config and'
@echo ' enough build support to build external modules'
Unfortunately, that's not true. Trying to build an external module
fails because linux/bounds.h is missing. :/
I guess you just have to do a "make modules_prepare".
--
Grant Edwards grant.b.edwards Yow! UH-OH!! We're out
at of AUTOMOBILE PARTS and
gmail.com RUBBER GOODS!