xref: /OK3568_Linux_fs/buildroot/arch/Config.in.powerpc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_POWERPC_CPU_HAS_ALTIVEC
2	bool
3
4config BR2_POWERPC_CPU_HAS_SPE
5	bool
6
7choice
8	prompt "Target Architecture Variant"
9	default BR2_generic_powerpc
10	help
11	  Specific CPU variant to use
12config BR2_generic_powerpc
13	bool "generic"
14config BR2_powerpc_401
15	bool "401"
16	depends on !BR2_ARCH_IS_64
17config BR2_powerpc_403
18	bool "403"
19	depends on !BR2_ARCH_IS_64
20config BR2_powerpc_405
21	bool "405"
22	depends on !BR2_ARCH_IS_64
23config BR2_powerpc_405fp
24	bool "405 with FPU"
25	depends on !BR2_ARCH_IS_64
26config BR2_powerpc_440
27	bool "440"
28	depends on !BR2_ARCH_IS_64
29config BR2_powerpc_440fp
30	bool "440 with FPU"
31	depends on !BR2_ARCH_IS_64
32config BR2_powerpc_464
33	bool "464"
34	depends on !BR2_ARCH_IS_64
35config BR2_powerpc_464fp
36	bool "464 with FPU"
37	depends on !BR2_ARCH_IS_64
38config BR2_powerpc_476
39	bool "476"
40	depends on !BR2_ARCH_IS_64
41config BR2_powerpc_476fp
42	bool "476 with FPU"
43	depends on !BR2_ARCH_IS_64
44config BR2_powerpc_505
45	bool "505"
46	depends on !BR2_ARCH_IS_64
47config BR2_powerpc_602
48	bool "602"
49	depends on !BR2_ARCH_IS_64
50config BR2_powerpc_603
51	bool "603"
52	depends on !BR2_ARCH_IS_64
53config BR2_powerpc_603e
54	bool "603e"
55	depends on !BR2_ARCH_IS_64
56config BR2_powerpc_604
57	bool "604"
58	depends on !BR2_ARCH_IS_64
59config BR2_powerpc_604e
60	bool "604e"
61	depends on !BR2_ARCH_IS_64
62config BR2_powerpc_620
63	bool "620"
64config BR2_powerpc_630
65	bool "630"
66config BR2_powerpc_740
67	bool "740"
68	depends on !BR2_ARCH_IS_64
69config BR2_powerpc_7400
70	bool "7400"
71	depends on !BR2_ARCH_IS_64
72	select BR2_POWERPC_CPU_HAS_ALTIVEC
73config BR2_powerpc_7450
74	bool "7450"
75	depends on !BR2_ARCH_IS_64
76	select BR2_POWERPC_CPU_HAS_ALTIVEC
77config BR2_powerpc_750
78	bool "750"
79	depends on !BR2_ARCH_IS_64
80config BR2_powerpc_821
81	bool "821"
82	depends on !BR2_ARCH_IS_64
83config BR2_powerpc_823
84	bool "823"
85	depends on !BR2_ARCH_IS_64
86config BR2_powerpc_860
87	bool "860"
88	depends on !BR2_ARCH_IS_64
89config BR2_powerpc_970
90	bool "970"
91	select BR2_POWERPC_CPU_HAS_ALTIVEC
92config BR2_powerpc_8540
93	bool "8540 / e500v1"
94	depends on !BR2_ARCH_IS_64
95	select BR2_POWERPC_CPU_HAS_SPE
96config BR2_powerpc_8548
97	bool "8548 / e500v2"
98	depends on !BR2_ARCH_IS_64
99	select BR2_POWERPC_CPU_HAS_SPE
100config BR2_powerpc_e300c2
101	bool "e300c2"
102	depends on !BR2_ARCH_IS_64
103config BR2_powerpc_e300c3
104	bool "e300c3"
105	depends on !BR2_ARCH_IS_64
106config BR2_powerpc_e500mc
107	bool "e500mc"
108	depends on !BR2_ARCH_IS_64
109config BR2_powerpc_e5500
110	bool "e5500"
111	depends on !BR2_powerpc64le
112config BR2_powerpc_e6500
113	bool "e6500"
114	depends on !BR2_powerpc64le
115	select BR2_POWERPC_CPU_HAS_ALTIVEC
116config BR2_powerpc_power4
117	bool "power4"
118config BR2_powerpc_power5
119	bool "power5"
120config BR2_powerpc_power6
121	bool "power6"
122	select BR2_POWERPC_CPU_HAS_ALTIVEC
123config BR2_powerpc_power7
124	bool "power7"
125	select BR2_POWERPC_CPU_HAS_ALTIVEC
126config BR2_powerpc_power8
127	bool "power8"
128	select BR2_POWERPC_CPU_HAS_ALTIVEC
129endchoice
130
131choice
132	prompt "Target ABI"
133	default BR2_powerpc_SPE if BR2_POWERPC_CPU_HAS_SPE
134	default BR2_powerpc_CLASSIC
135	help
136	  Application Binary Interface to use
137
138config BR2_powerpc_CLASSIC
139	bool "Classic"
140	depends on !BR2_POWERPC_CPU_HAS_SPE
141config BR2_powerpc_SPE
142	bool "SPE"
143	depends on BR2_POWERPC_CPU_HAS_SPE
144endchoice
145
146config BR2_POWERPC_SOFT_FLOAT
147	bool "Use soft-float"
148	select BR2_SOFT_FLOAT
149	help
150	  If your target CPU does not have a Floating Point Unit (FPU)
151	  or a kernel FPU emulator, but you still wish to support
152	  floating point functions, then everything will need to be
153	  compiled with soft floating point support (-msoft-float).
154
155config BR2_ARCH
156	default "powerpc"	if BR2_powerpc
157	default "powerpc64"	if BR2_powerpc64
158	default "powerpc64le"	if BR2_powerpc64le
159
160config BR2_NORMALIZED_ARCH
161	default "powerpc"
162
163config BR2_ENDIAN
164	default "BIG"    if BR2_powerpc || BR2_powerpc64
165	default "LITTLE" if BR2_powerpc64le
166
167config BR2_GCC_TARGET_CPU
168	default "401"		if BR2_powerpc_401
169	default "403"		if BR2_powerpc_403
170	default "405"		if BR2_powerpc_405
171	default "405fp"		if BR2_powerpc_405fp
172	default "440"		if BR2_powerpc_440
173	default "440fp"		if BR2_powerpc_440fp
174	default "464"		if BR2_powerpc_464
175	default "464fp"		if BR2_powerpc_464fp
176	default "476"		if BR2_powerpc_476
177	default "476fp"		if BR2_powerpc_476fp
178	default "505"		if BR2_powerpc_505
179	default "602"		if BR2_powerpc_602
180	default "603"		if BR2_powerpc_603
181	default "603e"		if BR2_powerpc_603e
182	default "604"		if BR2_powerpc_604
183	default "604e"		if BR2_powerpc_604e
184	default "620"		if BR2_powerpc_620
185	default "630"		if BR2_powerpc_630
186	default "740"		if BR2_powerpc_740
187	default "7400"		if BR2_powerpc_7400
188	default "7450"		if BR2_powerpc_7450
189	default "750"		if BR2_powerpc_750
190	default "821"		if BR2_powerpc_821
191	default "823"		if BR2_powerpc_823
192	default "860"		if BR2_powerpc_860
193	default "970"		if BR2_powerpc_970
194	default "8540"		if BR2_powerpc_8540
195	default	"8548"		if BR2_powerpc_8548
196	default "e300c2"	if BR2_powerpc_e300c2
197	default "e300c3"	if BR2_powerpc_e300c3
198	default "e500mc"	if BR2_powerpc_e500mc
199	default "e5500"		if BR2_powerpc_e5500
200	default "e6500"		if BR2_powerpc_e6500
201	default "power4"	if BR2_powerpc_power4
202	default "power5"	if BR2_powerpc_power5
203	default "power6"	if BR2_powerpc_power6
204	default "power7"	if BR2_powerpc_power7
205	default "power8"	if BR2_powerpc_power8
206
207config BR2_READELF_ARCH_NAME
208	default "PowerPC"	if BR2_powerpc
209	default "PowerPC64"	if BR2_powerpc64 || BR2_powerpc64le
210
211# vim: ft=kconfig
212# -*- mode:kconfig; -*-
213