Messages in this thread | | | From | "Anthony Barbachan" <> | Subject | Re: Intel Makefile Suggestion | Date | Thu, 31 Dec 1998 19:09:57 -0500 |
| |
-----Original Message----- From: Matthias Andree <mandree@sx1.HRZ.Uni-Dortmund.DE> To: linux-kernel@vger.rutgers.edu <linux-kernel@vger.rutgers.edu> Date: Wednesday, December 30, 1998 11:21 PM Subject: Re: Intel Makefile Suggestion
>On Wed, Dec 30, 1998 at 09:06:35AM +0100, Jakub Jelinek wrote: >> 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) > >This does not help for pgcc, gcc 2.8 and other variants the kernel >might encounter. >
Can be fixed with
HAS_586OPTION := $(shell if $(CC) --version 2>&1 | grep -q 'egcs'; then echo y; else echo n; fi) if $HAS_586OPTION = "n"; then HAS_586OPTION := $(shell if $(CC) --version 2>&1 | grep -q '2.8'; then echo y; else echo n; fi) fi if $HAS_586OPTION = "n"; then HAS_586OPTION := $(shell if $(CC) --version 2>&1 | grep -q 'pgcc'; then echo y; else echo n; fi) fi
>> ifdef CONFIG_M586 >> ifneq ($(IS_EGCS),y) >> CPUFLAGS := -m486 >> else >> CPUFLAGS := -mpentium -march=pentium > >-mpentium is -mcpu=pentium and as such is included in -march=pentium, >so -march=pentium would suffice. You would need to switch from -O2 to >-O6, too (see pgcc FAQ at http://www.goof.com/pcg/) > > > >There has already been such discussion in a different thread a couple >of weeks ago, please check it. Search for messages which contain > > [PATCH] Support new egcs/pgcc -mpentium(pro) options > >in their subject. > >I am currently considering a solution which comprises > >a) automatic configuration > to take the load out of the configuration menues (sp?) shown to the > user > >b) manual configuration > e. g. for compiling a K5 kernel on a Pentium-II machine > >c) automatic compiler detection > to prevent enabling these options with plain gcc-2.7 > >d) other CPUs > such as Cyrix, AMD K6 > > > >-- >Matthias Andree > >- >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/ >
- 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/
| |