]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - arch/Config.in.mips
MIPS: add support for M5100 cores
[coffee/buildroot.git] / arch / Config.in.mips
1 # mips default CPU ISAs
2 config BR2_MIPS_CPU_MIPS32
3         bool
4 config BR2_MIPS_CPU_MIPS32R2
5         bool
6 config BR2_MIPS_CPU_MIPS32R5
7         bool
8 config BR2_MIPS_CPU_MIPS32R6
9         bool
10 config BR2_MIPS_CPU_MIPS64
11         bool
12 config BR2_MIPS_CPU_MIPS64R2
13         bool
14 config BR2_MIPS_CPU_MIPS64R5
15         bool
16 config BR2_MIPS_CPU_MIPS64R6
17         bool
18
19 choice
20         prompt "Target Architecture Variant"
21         depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
22         default BR2_mips_32 if BR2_mips || BR2_mipsel
23         default BR2_mips_64 if BR2_mips64 || BR2_mips64el
24         help
25           Specific CPU variant to use
26
27           64bit cabable: 64, 64r2, 64r5, 64r6
28           non-64bit capable: 32, 32r2, 32r5, 32r6
29
30 config BR2_mips_32
31         bool "Generic MIPS32"
32         depends on !BR2_ARCH_IS_64
33         select BR2_MIPS_CPU_MIPS32
34 config BR2_mips_32r2
35         bool "Generic MIPS32R2"
36         depends on !BR2_ARCH_IS_64
37         select BR2_MIPS_CPU_MIPS32R2
38 config BR2_mips_32r5
39         bool "Generic MIPS32R5"
40         depends on !BR2_ARCH_IS_64
41         select BR2_MIPS_CPU_MIPS32R5
42 config BR2_mips_32r6
43         bool "Generic MIPS32R6"
44         depends on !BR2_ARCH_IS_64
45         select BR2_MIPS_CPU_MIPS32R6
46 config BR2_mips_interaptiv
47         bool "interAptiv"
48         depends on !BR2_ARCH_IS_64
49         select BR2_MIPS_CPU_MIPS32R2
50 config BR2_mips_m5100
51         bool "M5100"
52         depends on !BR2_ARCH_IS_64
53         select BR2_MIPS_CPU_MIPS32R5
54 config BR2_mips_64
55         bool "Generic MIPS64"
56         depends on BR2_ARCH_IS_64
57         select BR2_MIPS_CPU_MIPS64
58 config BR2_mips_64r2
59         bool "Generic MIPS64R2"
60         depends on BR2_ARCH_IS_64
61         select BR2_MIPS_CPU_MIPS64R2
62 config BR2_mips_64r5
63         bool "Generic MIPS64R5"
64         depends on BR2_ARCH_IS_64
65         select BR2_MIPS_CPU_MIPS64R5
66 config BR2_mips_64r6
67         bool "Generic MIPS64R6"
68         depends on BR2_ARCH_IS_64
69         select BR2_MIPS_CPU_MIPS64R6
70 endchoice
71
72
73 choice
74         prompt "Target ABI"
75         depends on BR2_mips64 || BR2_mips64el
76         default BR2_MIPS_NABI32
77
78         help
79           Application Binary Interface to use
80
81 config BR2_MIPS_NABI32
82         bool "n32"
83         depends on BR2_ARCH_IS_64
84         select BR2_KERNEL_64_USERLAND_32
85 config BR2_MIPS_NABI64
86         bool "n64"
87         depends on BR2_ARCH_IS_64
88 endchoice
89
90 config BR2_MIPS_SOFT_FLOAT
91         bool "Use soft-float"
92         default y
93         select BR2_SOFT_FLOAT
94         help
95           If your target CPU does not have a Floating Point Unit (FPU)
96           or a kernel FPU emulator, but you still wish to support
97           floating point functions, then everything will need to be
98           compiled with soft floating point support (-msoft-float).
99
100 config BR2_ARCH
101         default "mips"          if BR2_mips
102         default "mipsel"        if BR2_mipsel
103         default "mips64"        if BR2_mips64
104         default "mips64el"      if BR2_mips64el
105
106 config BR2_ENDIAN
107         default "LITTLE"        if BR2_mipsel || BR2_mips64el
108         default "BIG"           if BR2_mips || BR2_mips64
109
110 config BR2_GCC_TARGET_ARCH
111         default "mips32"        if BR2_mips_32
112         default "mips32r2"      if BR2_mips_32r2
113         default "mips32r5"      if BR2_mips_32r5
114         default "mips32r6"      if BR2_mips_32r6
115         default "interaptiv"    if BR2_mips_interaptiv
116         default "m5100"         if BR2_mips_m5100
117         default "mips64"        if BR2_mips_64
118         default "mips64r2"      if BR2_mips_64r2
119         default "mips64r5"      if BR2_mips_64r5
120         default "mips64r6"      if BR2_mips_64r6
121
122 config BR2_MIPS_OABI32
123         bool
124         default y               if BR2_mips || BR2_mipsel
125
126 config BR2_GCC_TARGET_ABI
127         default "32"            if BR2_MIPS_OABI32
128         default "n32"           if BR2_MIPS_NABI32
129         default "64"            if BR2_MIPS_NABI64