]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/linux-wrt-2.4.20/gcc_mtune.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / linux-wrt-2.4.20 / gcc_mtune.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- linux-2.4.20/arch/mips/Makefile~gcc_mtune   2005-01-07 04:06:12.000000000 -0500
7 +++ linux-2.4.20/arch/mips/Makefile     2005-01-07 04:07:03.532480104 -0500
8 @@ -54,47 +54,47 @@
9  # CPU-dependent compiler/assembler options for optimization.
10  #
11  ifdef CONFIG_CPU_R3000
12 -GCCFLAGS       += -mcpu=r3000 -mips1
13 +GCCFLAGS       += -mtune=r3000 -mips1
14  endif
15  ifdef CONFIG_CPU_TX39XX
16 -GCCFLAGS       += -mcpu=r3000 -mips1
17 +GCCFLAGS       += -mtune=r3000 -mips1
18  endif
19  ifdef CONFIG_CPU_R6000
20 -GCCFLAGS       += -mcpu=r6000 -mips2 -Wa,--trap
21 +GCCFLAGS       += -mtune=r6000 -mips2 -Wa,--trap
22  endif
23  ifdef CONFIG_CPU_R4300
24 -GCCFLAGS       += -mcpu=r4300 -mips2 -Wa,--trap
25 +GCCFLAGS       += -mtune=r4300 -mips2 -Wa,--trap
26  endif
27  ifdef CONFIG_CPU_VR41XX
28 -GCCFLAGS       += -mcpu=r4600 -mips2 -Wa,--trap
29 +GCCFLAGS       += -mtune=r4600 -mips2 -Wa,--trap
30  endif
31  ifdef CONFIG_CPU_R4X00
32 -GCCFLAGS       += -mcpu=r4600 -mips2 -Wa,--trap
33 +GCCFLAGS       += -mtune=r4600 -mips2 -Wa,--trap
34  endif
35  ifdef CONFIG_CPU_TX49XX
36 -GCCFLAGS       += -mcpu=r4600 -mips2 -Wa,--trap
37 +GCCFLAGS       += -mtune=r4600 -mips2 -Wa,--trap
38  endif
39  ifdef CONFIG_CPU_MIPS32
40 -GCCFLAGS       += -mcpu=r4600 -mips2 -Wa,--trap
41 +GCCFLAGS       += -mtune=r4600 -mips2 -Wa,--trap
42  endif
43  ifdef CONFIG_CPU_MIPS64
44 -GCCFLAGS       += -mcpu=r4600 -mips2 -Wa,--trap
45 +GCCFLAGS       += -mtune=r4600 -mips2 -Wa,--trap
46  endif
47  ifdef CONFIG_CPU_R5000
48 -GCCFLAGS       += -mcpu=r5000 -mips2 -Wa,--trap
49 +GCCFLAGS       += -mtune=r5000 -mips2 -Wa,--trap
50  endif
51  ifdef CONFIG_CPU_R5432
52 -GCCFLAGS       += -mcpu=r5000 -mips2 -Wa,--trap
53 +GCCFLAGS       += -mtune=r5000 -mips2 -Wa,--trap
54  endif
55  ifdef CONFIG_CPU_NEVADA
56  # Cannot use -mmad with currently recommended tools
57 -GCCFLAGS       += -mcpu=r5000 -mips2 -Wa,--trap
58 +GCCFLAGS       += -mtune=r5000 -mips2 -Wa,--trap
59  endif
60  ifdef CONFIG_CPU_RM7000
61 -GCCFLAGS       += -mcpu=r5000 -mips2 -Wa,--trap
62 +GCCFLAGS       += -mtune=r5000 -mips2 -Wa,--trap
63  endif
64  ifdef CONFIG_CPU_SB1
65 -GCCFLAGS       += $(call check_gcc, -mcpu=sb1, -mcpu=r5000) \
66 +GCCFLAGS       += $(call check_gcc, -mtune=sb1, -mtune=r5000) \
67                    -mips2 -Wa,--trap
68  ifdef CONFIG_SB1_PASS_1_WORKAROUNDS
69  MODFLAGS       += -msb1-pass1-workarounds