Re: Replacement for "make SUBDIRS=...." in 2.5.63?

David Woodhouse (dwmw2@infradead.org)
28 Feb 2003 16:05:58 +0000


On Tue, 2003-02-25 at 17:04, Kai Germaschewski wrote:

> > What is the proper way to rebuild just one subdirectory? How
> > about for building externally provided modules?
>
> The proper way is "make vmlinux/modules". If you are sure that nothing
> changed outside of that directory, make SUBDIRS=... is fine, but since
> kbuild cannot know that nothing else changed (you just prohibited checking
> the other dirs), it'll give the warning.

In the case where you're building external modules, this is just fine --
generally you're doing this on purpose. How about disabling the warning
if every element of $(SUBDIRS) starts with a '/'?

> I hope that clarifies things a bit. As I wrote earlier, I'll come up with
> a proper and simple way to build external modules once I find the time.

If you deprecate 'make SUBDIRS=/my/module/source modules' then please
make sure whatever replacement you come up with also works with 2.0, 2.2
and 2.4 kernels, to avoid gratuitous pain for driver maintainers. :)

-- 
dwmw2

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/