From: Heiko Z. <he...@zu...> - 2003-10-25 13:41:02
|
> On Wed, Oct 22, 2003 at 09:23:58PM -0400, Bruce Smith wrote: >> > CONFIG_CPU : the command passed to gcc as -march=type >> > CONFIG_KERNEL_CPU : the string appended to the linux .config file. >> >> Why have two different options? Why not add CPU types to the existing >> option and compile everything for the same CPU? > > because they are two different things. > > the kernel cpu is for the ordering of instructions, cache size, etc. > > the config cpu is for using specific instructions for the architecture. > > With the via epia, you have to configure the kernel as VIAC3-2, and the > executables as i686, *NOT AS C3*. > > I don't know the correct parameters for other archs. Then I would suggest modifying our build system this way: Select (1) CPU type in menuconfig and depending on this type we set the 2 parameters. example: i586: uname/gcc will use i586 and the Kernel also. VIAC3-2: uname/gcc will use i686 and the Kernel VIAC3-2 I think otherwise it get's to confusing. Can you do those changes and check it in ? -- Regards Heiko Zuerker http://www.devil-linux.org |