2003-08-26 08:24:41

by J.A. Magallon

[permalink] [raw]
Subject: [PATCH] 2.4: add check_gcc for P3/P4

Hi.

Resending for 2.4.23-pre ;)

--- linux-2.4.21-bp1/arch/i386/Makefile.orig 2003-06-18
23:40:25.000000000 +0200
+++ linux-2.4.21-bp1/arch/i386/Makefile 2003-06-18 23:59:25.000000000
+0200
@@ -53,11 +53,11 @@
endif

ifdef CONFIG_MPENTIUMIII
-CFLAGS += -march=i686
+CFLAGS += $(call check_gcc,-march=pentium3,-march=i686)
endif
Marcelo Tosatti <[email protected]>
ifdef CONFIG_MPENTIUM4
-CFLAGS += -march=i686
+CFLAGS += $(call check_gcc,-march=pentium4,-march=i686)
endif

ifdef CONFIG_MK6


--
J.A. Magallon <[email protected]> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))


2003-08-26 17:56:50

by insecure

[permalink] [raw]
Subject: Re: [PATCH] 2.4: add check_gcc for P3/P4

On Tuesday 26 August 2003 11:24, J.A. Magallon wrote:
> Hi.
>
> Resending for 2.4.23-pre ;)
>
> --- linux-2.4.21-bp1/arch/i386/Makefile.orig 2003-06-18
> 23:40:25.000000000 +0200
> +++ linux-2.4.21-bp1/arch/i386/Makefile 2003-06-18 23:59:25.000000000
> +0200
> @@ -53,11 +53,11 @@
> endif
>
> ifdef CONFIG_MPENTIUMIII
> -CFLAGS += -march=i686
> +CFLAGS += $(call check_gcc,-march=pentium3,-march=i686)
> endif
> Marcelo Tosatti <[email protected]>

This is a rather strange make statement

> ifdef CONFIG_MPENTIUM4
> -CFLAGS += -march=i686
> +CFLAGS += $(call check_gcc,-march=pentium4,-march=i686)
> endif
>
> ifdef CONFIG_MK6
--
vda

2003-08-26 22:28:27

by J.A. Magallon

[permalink] [raw]
Subject: Re: [PATCH] 2.4: add check_gcc for P3/P4


On 08.26, insecure wrote:
> On Tuesday 26 August 2003 11:24, J.A. Magallon wrote:
> > Hi.
> >
> > Resending for 2.4.23-pre ;)
> >
> > --- linux-2.4.21-bp1/arch/i386/Makefile.orig 2003-06-18
> > 23:40:25.000000000 +0200
> > +++ linux-2.4.21-bp1/arch/i386/Makefile 2003-06-18
23:59:25.000000000
> > +0200
> > @@ -53,11 +53,11 @@
> > endif
> >
> > ifdef CONFIG_MPENTIUMIII
> > -CFLAGS += -march=i686
> > +CFLAGS += $(call check_gcc,-march=pentium3,-march=i686)
> > endif
> > Marcelo Tosatti <[email protected]>
>
> This is a rather strange make statement
>

Oops, silly cut'n'paste in balsa...
Here is the good one:

--- linux-2.4.21-bp1/arch/i386/Makefile.orig 2003-06-18
23:40:25.000000000 +0200
+++ linux-2.4.21-bp1/arch/i386/Makefile 2003-06-18 23:59:25.000000000
+0200
@@ -53,11 +53,11 @@
endif

ifdef CONFIG_MPENTIUMIII
-CFLAGS += -march=i686
+CFLAGS += $(call check_gcc,-march=pentium3,-march=i686)
endif

ifdef CONFIG_MPENTIUM4
-CFLAGS += -march=i686
+CFLAGS += $(call check_gcc,-march=pentium4,-march=i686)
endif

ifdef CONFIG_MK6


--
J.A. Magallon <[email protected]> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))