patches/linux/2.6.8/linux-2.6.8-arm-nonofpu.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
http://www.spinics.net/lists/arm/msg08012.html
yann@1
     2
yann@1
     3
To: Dimitry Andric <dimitry@xxxxxxxxxx>
yann@1
     4
Subject: Re: Kernel Compile Error: use of old and new-style options to set FPU type
yann@1
     5
From: Marc Britten <maillists@xxxxxxxxxxxxxxxxx>
yann@1
     6
Date: Wed, 16 Jun 2004 03:03:15 -0400
yann@1
     7
Cc: linux-arm@xxxxxxxxxxxxxxxxxxxxxx
yann@1
     8
In-reply-to: <1525495613.20040615202902@andric.com>
yann@1
     9
yann@1
    10
Dimitry Andric wrote:
yann@1
    11
yann@1
    12
>>Assembler messages:
yann@1
    13
>>Error: use of old and new-style options to set FPU type
yann@1
    14
>   Try removing -Wa,-mno-fpu from CFLAGS (and possibly AFLAGS, but I'm
yann@1
    15
>   not sure, depends on what your compiler generates by default) in
yann@1
    16
>   arch/arm/Makefile.
yann@1
    17
yann@1
    18
Just to let people know, this was successful.
yann@1
    19
yann@1
    20
Thanks,
yann@1
    21
yann@1
    22
Marc Britten
yann@1
    23
yann@1
    24
--------
yann@1
    25
yann@1
    26
Fixes error
yann@1
    27
yann@1
    28
...
yann@1
    29
make -f scripts/Makefile.build obj=scripts/mod
yann@1
    30
  /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
yann@1
    31
Assembler messages:
yann@1
    32
Error: use of old and new-style options to set FPU type
yann@1
    33
make[2]: *** [scripts/mod/empty.o] Error 1
yann@1
    34
make[1]: *** [scripts/mod] Error 2
yann@1
    35
make: *** [scripts] Error 2
yann@1
    36
yann@1
    37
yann@1
    38
--- linux-2.6.8/arch/arm/Makefile.old	2004-09-01 21:27:07.000000000 -0700
yann@1
    39
+++ linux-2.6.8/arch/arm/Makefile	2004-09-01 21:27:31.000000000 -0700
yann@1
    40
@@ -55,8 +55,8 @@
yann@1
    41
 tune-$(CONFIG_CPU_V6)		:=-mtune=strongarm
yann@1
    42
 
yann@1
    43
 # Need -Uarm for gcc < 3.x
yann@1
    44
-CFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Wa,-mno-fpu -Uarm
yann@1
    45
-AFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu
yann@1
    46
+CFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Uarm
yann@1
    47
+AFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) -msoft-float
yann@1
    48
 
yann@1
    49
 CHECK		:= $(CHECK) -D__arm__=1
yann@1
    50