patches/linux/2.6.8/120-linux-2.6.8-arm-nonofpu.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Apr 26 21:31:05 2008 +0000 (2008-04-26)
changeset 454 372b2f397baa
permissions -rw-r--r--
Configure tsocks with a simple heuristic.

Consider the proxy has to be in a 'local' network. It means it is directly
reachable by the local machine, even if the local machine has to hop through
one or more gates to reach the proxy (often the case in enterprise networks
where class A 10.0.0.0/8 is in fact sub-divided into smaller networks, each
one of them in a different location, eg. 10.1.0.0/16 in a place, while
10.2.0.0/16 would be on the other side of the world). Not being in the same
subnet does not mean the proxy is not available.

So we will build a mask with at most high bits set, which defines a network
that has both the local machine and the proxy. Because a machine may have
more than one interface, build a mask for each of them, removing 127.0.0.1
which is added automagically by tsocks, and removing duplicate masks.

If all of this does not work, then it means the local machine can NOT in fact
reach the proxy, which in turn means the user mis-configured something (most
probably a typo...).

/trunk/scripts/crosstool.sh | 61 52 9 0 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 9 deletions(-)
yann@402
     1
http://www.spinics.net/lists/arm/msg08012.html
yann@402
     2
yann@402
     3
To: Dimitry Andric <dimitry@xxxxxxxxxx>
yann@402
     4
Subject: Re: Kernel Compile Error: use of old and new-style options to set FPU type
yann@402
     5
From: Marc Britten <maillists@xxxxxxxxxxxxxxxxx>
yann@402
     6
Date: Wed, 16 Jun 2004 03:03:15 -0400
yann@402
     7
Cc: linux-arm@xxxxxxxxxxxxxxxxxxxxxx
yann@402
     8
In-reply-to: <1525495613.20040615202902@andric.com>
yann@402
     9
yann@402
    10
Dimitry Andric wrote:
yann@402
    11
yann@402
    12
>>Assembler messages:
yann@402
    13
>>Error: use of old and new-style options to set FPU type
yann@402
    14
>   Try removing -Wa,-mno-fpu from CFLAGS (and possibly AFLAGS, but I'm
yann@402
    15
>   not sure, depends on what your compiler generates by default) in
yann@402
    16
>   arch/arm/Makefile.
yann@402
    17
yann@402
    18
Just to let people know, this was successful.
yann@402
    19
yann@402
    20
Thanks,
yann@402
    21
yann@402
    22
Marc Britten
yann@402
    23
yann@402
    24
--------
yann@402
    25
yann@402
    26
Fixes error
yann@402
    27
yann@402
    28
...
yann@402
    29
make -f scripts/Makefile.build obj=scripts/mod
yann@402
    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@402
    31
Assembler messages:
yann@402
    32
Error: use of old and new-style options to set FPU type
yann@402
    33
make[2]: *** [scripts/mod/empty.o] Error 1
yann@402
    34
make[1]: *** [scripts/mod] Error 2
yann@402
    35
make: *** [scripts] Error 2
yann@402
    36
yann@402
    37
yann@402
    38
--- linux-2.6.8/arch/arm/Makefile.old	2004-09-01 21:27:07.000000000 -0700
yann@402
    39
+++ linux-2.6.8/arch/arm/Makefile	2004-09-01 21:27:31.000000000 -0700
yann@402
    40
@@ -55,8 +55,8 @@
yann@402
    41
 tune-$(CONFIG_CPU_V6)		:=-mtune=strongarm
yann@402
    42
 
yann@402
    43
 # Need -Uarm for gcc < 3.x
yann@402
    44
-CFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Wa,-mno-fpu -Uarm
yann@402
    45
-AFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu
yann@402
    46
+CFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Uarm
yann@402
    47
+AFLAGS		+=-mapcs-32 $(arch-y) $(tune-y) -msoft-float
yann@402
    48
 
yann@402
    49
 CHECK		:= $(CHECK) -D__arm__=1
yann@402
    50