Messages in this thread |  | | Date | Wed, 14 May 2003 22:47:09 +0200 | From | Sam Ravnborg <> | Subject | Re: [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/
|  |