Re: passing my own compiler options into linux kernel compiling

From: James H. Cloos Jr. (cloos@jhcloos.com)
Date: Thu Jul 24 2003 - 07:35:29 EST


>>>>> "Michal" == Michal Semler <cijoml@volny.cz> writes:

Michal> Is easyer way of passing these args planned? Editing source
Michal> every time I change kernel is not goood way. make oldconfig
Michal> adding these args is better way.

In 2.6 arch/i386/Makefile looks like this;

cflags-$(CONFIG_M686) += -march=i686
cflags-$(CONFIG_MPENTIUMII) += $(call check_gcc,-march=pentium2,-march=i686)
cflags-$(CONFIG_MPENTIUMIII) += $(call check_gcc,-march=pentium3,-march=i686)
cflags-$(CONFIG_MPENTIUM4) += $(call check_gcc,-march=pentium4,-march=i686)

et al for the other cpu CONFIG options.

IOW it pretty much makes the right choices w/o editing.

-JimC

-
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 : Thu Jul 31 2003 - 22:00:22 EST