Alternatively, do this in arch/i386/Makefile:
IS_EGCS := $(shell if $(CC) --version 2>&1 | grep 'egcs' > /dev/null; then echo y; else echo n; fi)
ifdef CONFIG_M586
ifneq ($(IS_EGCS),y)
CPUFLAGS := -m486
else
CPUFLAGS := -mpentium -march=pentium
endif
CFLAGS := $(CFLAGS) $(CPUFLAGS) -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
endif
ifdef CONFIG_M686
ifneq ($(IS_EGCS),y)
CPUFLAGS := -m486
else
CPUFLAGS := -mpentium -march=pentiumpro
endif
CFLAGS := $(CFLAGS) $(CPUFLAGS) -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686
endif
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.1.130 on a sparc64 machine (3958.37 BogoMips)
___________________________________________________________________
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/