patches/linux/2.6.8/linux-2.6.8-arm-nonofpu.patch
changeset 402 197e1b49586e
parent 401 5baf14e56890
child 403 5c2145db8f0f
     1.1 --- a/patches/linux/2.6.8/linux-2.6.8-arm-nonofpu.patch	Sat Sep 22 17:25:42 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,50 +0,0 @@
     1.4 -http://www.spinics.net/lists/arm/msg08012.html
     1.5 -
     1.6 -To: Dimitry Andric <dimitry@xxxxxxxxxx>
     1.7 -Subject: Re: Kernel Compile Error: use of old and new-style options to set FPU type
     1.8 -From: Marc Britten <maillists@xxxxxxxxxxxxxxxxx>
     1.9 -Date: Wed, 16 Jun 2004 03:03:15 -0400
    1.10 -Cc: linux-arm@xxxxxxxxxxxxxxxxxxxxxx
    1.11 -In-reply-to: <1525495613.20040615202902@andric.com>
    1.12 -
    1.13 -Dimitry Andric wrote:
    1.14 -
    1.15 ->>Assembler messages:
    1.16 ->>Error: use of old and new-style options to set FPU type
    1.17 ->   Try removing -Wa,-mno-fpu from CFLAGS (and possibly AFLAGS, but I'm
    1.18 ->   not sure, depends on what your compiler generates by default) in
    1.19 ->   arch/arm/Makefile.
    1.20 -
    1.21 -Just to let people know, this was successful.
    1.22 -
    1.23 -Thanks,
    1.24 -
    1.25 -Marc Britten
    1.26 -
    1.27 ---------
    1.28 -
    1.29 -Fixes error
    1.30 -
    1.31 -...
    1.32 -make -f scripts/Makefile.build obj=scripts/mod
    1.33 -  /opt/crosstool/arm-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/arm-unknown-linux-gnu-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mlittle-endian -mapcs-32   -malignment-traps -msoft-float -Wa,-mno-fpu -Uarm -Os -Wdeclaration-after-statement    -DKBUILD_BASENAME=empty -DKBUILD_MODNAME=empty -c -o scripts/mod/empty.o scripts/mod/empty.c
    1.34 -Assembler messages:
    1.35 -Error: use of old and new-style options to set FPU type
    1.36 -make[2]: *** [scripts/mod/empty.o] Error 1
    1.37 -make[1]: *** [scripts/mod] Error 2
    1.38 -make: *** [scripts] Error 2
    1.39 -
    1.40 -
    1.41 ---- linux-2.6.8/arch/arm/Makefile.old	2004-09-01 21:27:07.000000000 -0700
    1.42 -+++ linux-2.6.8/arch/arm/Makefile	2004-09-01 21:27:31.000000000 -0700
    1.43 -@@ -55,8 +55,8 @@
    1.44 - tune-$(CONFIG_CPU_V6)		:=-mtune=strongarm
    1.45 - 
    1.46 - # Need -Uarm for gcc < 3.x
    1.47 --CFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Wa,-mno-fpu -Uarm
    1.48 --AFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu
    1.49 -+CFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Uarm
    1.50 -+AFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) -msoft-float
    1.51 - 
    1.52 - CHECK		:= $(CHECK) -D__arm__=1
    1.53 -