Re: [PATCH] more procfs bits for !CONFIG_MMU

From: Sam Ravnborg (sam@ravnborg.org)
Date: Thu Jan 02 2003 - 11:49:14 EST


On Thu, Jan 02, 2003 at 05:35:05PM +0100, Christoph Hellwig wrote:
> On Thu, Jan 02, 2003 at 05:29:56PM +0100, Sam Ravnborg wrote:
> > New Makefile:
> > proc-y := proc_mmu.o
> > proc-$(CONFIG_MMU) := proc_nommu.o
> >
>
> Wouldn't this add proc_mmu.o even if CONFIG_MMU is not y?

Ups, you are right. I thought about CONFIG_NOMMU..
Should read:
proc-y := proc_nommu.o
proc-$(CONFIG_MMU) := proc_mmu.o

If CONFIG_MMU is 'y', then the first assignment is overwritten.

The same principle (pattern?), but with reversed logic.
But this one is not that nice, because the common case overwrite the
un-common case.

        Sam
-
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/



This archive was generated by hypermail 2b29 : Tue Jan 07 2003 - 22:00:17 EST