2006/1/27, Kevin D. Kissell <kevink@xxxxxxxx>: > > ifdef CONFIG_CPU_SMARTMIPS > cflags-$(CONFIG_CPU_MIPS32R1) += \ > $(call set_gccflags,mips32,smartmips,4kec,mips3,mips2)\ > -Os, -Wa,--trap > > cflags-$(CONFIG_CPU_MIPS32R2) += \ > $(call set_gccflags,4ksd,mips32r2,4kec,mips3,mips2) \ > -Wa,--trap > else > cflags-$(CONFIG_CPU_MIPS32R1) += \ > $(call set_gccflags,mips32,mips32,r4600,mips3,mips2) \ > -Wa,--trap > > cflags-$(CONFIG_CPU_MIPS32R2) += \ > $(call set_gccflags,mips32r2,mips32r2,r4600,mips3,mips2) > \ > -Wa,--trap > endif > > > That's almost certainly not the cleanest way to do it (and I really don't know > if the values I threw in for the MIPS32R1+SmartMIPS (e.g. 4KSc) combination > would actually work. I just want to point out that it isn't that hard to do. I agree it's not hard to do. But it becomes more tricky if you want something clean that gives best results for every cpus...Moreover I don't think your solution avoids maintenence problems IMHO. Ralf, could you give your opinion ? Thanks -- Franck