lkml.org 
[lkml]   [2003]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.5.69 Change to i386 Makefile to distinguish athlons.
On Wed, May 14, 2003 at 02:57:21PM -0400, Jonathan Bastien-Filiatrault wrote:
> It should succesfully set -march=athlon-<type> according to uname -p.
>
> --- linux-2.5.69/arch/i386/Makefile.orig 2003-05-14
> 13:37:19.000000000 -0400
> +++ linux-2.5.69/arch/i386/Makefile 2003-05-14 14:50:03.000000000 -0400
> @@ -23,7 +23,7 @@
> CFLAGS += -pipe
>
> check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null >
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
> -
> +get_athlon_type = ${shell case `uname -p` in "* 4 *") echo
> "athlon-4";;*XP*) echo "athlon-xp";;*MP*) echo "athlon-mp";;*) echo
> "athlon";;esac}

This is broken.
You have no guarantee whatsoever that the kernel is being compiled
for the machine where you do the compilation.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.037 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site