Messages in this thread | | | Date | Fri, 26 Sep 2003 12:44:42 +0100 | From | Russell King <> | Subject | Re: [2.6 patch] add a config option for -Os compilation |
| |
On Thu, Sep 25, 2003 at 08:11:27PM +0200, Sam Ravnborg wrote: > On Thu, Sep 25, 2003 at 04:38:45PM +0200, Adrian Bunk wrote: > > --- linux-2.6.0-test5-mm4/init/Kconfig.old 2003-09-25 14:38:18.000000000 +0200 > > +++ linux-2.6.0-test5-mm4/init/Kconfig 2003-09-25 14:47:12.000000000 +0200 > > @@ -65,6 +65,16 @@ > > > > menu "General setup" > > > > +config OPTIMIZE_FOR_SIZE > > + bool "Optimize for size" if EXPERIMENTAL > > + default y if ARM || H8300 > > + default n > > + help > > + Enabling this option will pass "-Os" instead of "-O2" to gcc > > + resulting in a smaller kernel. > > + > > + If unsure, say N. > > + > > This is a general file, and it is wrong to include architecture specific > knowledge here.
In which case we need to replicate the option in each of the per- architecture files. That seems a bit wasteful though.
I don't think "select" will hack it in this case though.
-- Russell King (rmk@arm.linux.org.uk) http://www.arm.linux.org.uk/personal/ Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/ 2.6 Serial core - 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/
| |