blob: 72fbc80f9e9ea53c20364bcebe98ccf498bcc513 [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001require conf/multilib.conf
2require conf/machine/include/tune-cortexa9.inc
3require conf/machine/include/baremetal-tc.conf
4
5# Define all of the multilibs supproted by this configuration
6MULTILIB_GLOBAL_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}"
7
8MULTILIBS = "multilib:libarmv5tesoftfp multilib:libarmv5tehard"
9MULTILIBS += "multilib:libnofp"
10MULTILIBS += "multilib:libv7nofp multilib:libv7fpsoftfp multilib:libv7fphard"
11MULTILIBS += "multilib:libv7anofp"
12MULTILIBS += "multilib:libv7afpsoftfp"
13MULTILIBS += "multilib:libv7afpthf multilib:libv7asimdsoftfp"
14MULTILIBS += "multilib:libv7asimdhard multilib:libv7vesimdsoftfp"
15MULTILIBS += "multilib:libvtvesimdhf"
16MULTILIBS += "multilib:libv8anofp"
17MULTILIBS += "multilib:libv8asimdsoftfp multilib:libv8asimdhard"
18
19TUNE_CCARGS = "${TUNE_CCARGS_tune-${DEFAULTTUNE}}"
20TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}"
21
22# Base configuration
23# CFLAGS:
24DEFAULTTUNE = "aarch32"
25
26AVAILTUNES += "aarch32"
27PACKAGE_EXTRA_ARCHS_tune-aarch32 = "${TUNE_PKGARCH_tune-aarch32}"
28BASE_LIB_tune-aarch32 = "lib"
29TUNE_FEATURES_tune-aarch32 = "arm"
30TUNE_CCARGS_tune-aarch32 = ""
31TUNE_PKGARCH_tune-aarch32 = "aarch32"
32
33
34# arm/v5te/softfp
35# CFLAGS: -marm -march=armv5te+fp -mfloat-abi=softfp
36DEFAULTTUNE_virtclass-multilib-libarmv5tesoftfp = "armv5tesoftfp"
37
38AVAILTUNES += "armv5tesoftfp"
39PACKAGE_EXTRA_ARCHS_tune-armv5tesoftfp = "${TUNE_PKGARCH_tune-armv5tesoftfp}"
40BASE_LIB_tune-armv5tesoftfp = "lib/arm/v5te/softfp"
41TUNE_FEATURES_tune-armv5tesoftfp = "arm"
42TUNE_CCARGS_tune-armv5tesoftfp = "-marm -march=armv5te+fp -mfloat-abi=softfp"
43TUNE_PKGARCH_tune-armv5tesoftfp = "armv5tefp"
44
45
46# arm/v5te/hard
47# CFLAGS: -marm -march=armv5te+fp -mfloat-abi=hard
48DEFAULTTUNE_virtclass-multilib-libarmv5tehard = "armv5tehard"
49
50AVAILTUNES += "armv5tehard"
51PACKAGE_EXTRA_ARCHS_tune-armv5tehard = "${TUNE_PKGARCH_tune-armv5tehard}"
52BASE_LIB_tune-armv5tehard = "lib/arm/v5te/hard"
53TUNE_FEATURES_tune-armv5tehard = "arm"
54TUNE_CCARGS_tune-armv5tehard = "-marm -march=armv5te+fp -mfloat-abi=hard"
55TUNE_PKGARCH_tune-armv5tehard = "armv5tefphf"
56
57
58# thumb/nofp
59# CFLAGS: -mthumb -mfloat-abi=soft
60DEFAULTTUNE_virtclass-multilib-libnofp = "armnofp"
61
62AVAILTUNES += "armnofp"
63PACKAGE_EXTRA_ARCHS_tune-armnofp = "${TUNE_PKGARCH_tune-armnofp}"
64BASE_LIB_tune-armnofp = "lib/thumb/nofp"
65TUNE_FEATURES_tune-armnofp = "arm"
66TUNE_CCARGS_tune-armnofp = "-mthumb -mfloat-abi=soft"
67TUNE_PKGARCH_tune-armnofp = "armt"
68
69
70# thumb/v7/nofp
71# CFLAGS: -mthumb -march=armv7 -mfloat-abi=soft
72DEFAULTTUNE_virtclass-multilib-libv7nofp = "armv7nofp"
73
74AVAILTUNES += "armv7nofp"
75PACKAGE_EXTRA_ARCHS_tune-armv7nofp = "${TUNE_PKGARCH_tune-armv7nofp}"
76BASE_LIB_tune-armv7nofp = "lib/thumb/v7/nofp"
77TUNE_FEATURES_tune-armv7nofp = "arm"
78TUNE_CCARGS_tune-armv7nofp = "-mthumb -march=armv7 -mfloat-abi=soft"
79TUNE_PKGARCH_tune-armv7nofp = "armv7t"
80
81
82# thumb/v7+fp/softfp
83# CFLAGS: -mthumb -march=armv7+fp -mfloat-abi=softfp
84DEFAULTTUNE_virtclass-multilib-libv7fpsoftfp = "armv7fpsoftfp"
85
86AVAILTUNES += "armv7fpsoftfp"
87PACKAGE_EXTRA_ARCHS_tune-armv7fpsoftfp = "${TUNE_PKGARCH_tune-armv7fpsoftfp}"
88BASE_LIB_tune-armv7fpsoftfp = "lib/thumb/v7+fp/softfp"
89TUNE_FEATURES_tune-armv7fpsoftfp = "arm"
90TUNE_CCARGS_tune-armv7fpsoftfp = "-mthumb -march=armv7+fp -mfloat-abi=softfp"
91TUNE_PKGARCH_tune-armv7fpsoftfp = "armv7fpt"
92
93
94# thumb/v7+fp/hard
95# CFLAGS: -mthumb -march=armv7+fp -mfloat-abi=hard
96DEFAULTTUNE_virtclass-multilib-libv7fphard = "armv7fphard"
97
98AVAILTUNES += "armv7fphard"
99PACKAGE_EXTRA_ARCHS_tune-armv7fphard = "${TUNE_PKGARCH_tune-armv7fphard}"
100BASE_LIB_tune-armv7fphard = "lib/thumb/v7+fp/hard"
101TUNE_FEATURES_tune-armv7fphard = "arm"
102TUNE_CCARGS_tune-armv7fphard = "-mthumb -march=armv7+fp -mfloat-abi=hard"
103TUNE_PKGARCH_tune-armv7fphard = "armv7fpthf"
104
105
106# thumb/v7-a/nofp
107# CFLAGS: -mthumb -march=armv7-a -mfloat-abi=soft
108DEFAULTTUNE_virtclass-multilib-libv7anofp = "armv7anofp"
109
110AVAILTUNES += "armv7anofp"
111PACKAGE_EXTRA_ARCHS_tune-armv7anofp = "${TUNE_PKGARCH_tune-armv7anofp}"
112BASE_LIB_tune-armv7anofp = "lib/thumb/v7-a/nofp"
113TUNE_FEATURES_tune-armv7anofp = "arm"
114TUNE_CCARGS_tune-armv7anofp = "-mthumb -march=armv7-a -mfloat-abi=soft"
115TUNE_PKGARCH_tune-armv7anofp = "armv7at"
116
117
118# thumb/v7-a+fp/softfp
119# CFLAGS: -mthumb -march=armv7-a+fp -mfloat-abi=softfp
120DEFAULTTUNE_virtclass-multilib-libv7afpsoftfp = "armv7afpsoftfp"
121
122AVAILTUNES += "armv7afpsoftfp"
123PACKAGE_EXTRA_ARCHS_tune-armv7afpsoftfp = "${TUNE_PKGARCH_tune-armv7afpsoftfp}"
124BASE_LIB_tune-armv7afpsoftfp = "lib/thumb/v7-a+fp/softfp"
125TUNE_FEATURES_tune-armv7afpsoftfp = "arm"
126TUNE_CCARGS_tune-armv7afpsoftfp = "-mthumb -march=armv7-a+fp -mfloat-abi=softfp"
127TUNE_PKGARCH_tune-armv7afpsoftfp = "armv7afpt"
128
129
130# thumb/v7-a+fp/hard
131# CFLAGS: -mthumb -march=armv7-a+fp -mfloat-abi=hard
132DEFAULTTUNE_virtclass-multilib-libv7afpthf = "armv7afpthf"
133
134AVAILTUNES += "armv7afpthf"
135PACKAGE_EXTRA_ARCHS_tune-armv7afpthf = "${TUNE_PKGARCH_tune-armv7afpthf}"
136BASE_LIB_tune-armv7afpthf = "lib/thumb/v7-a+fp/hard"
137TUNE_FEATURES_tune-armv7afpthf = "arm"
138TUNE_CCARGS_tune-armv7afpthf = "-mthumb -march=armv7-a+fp -mfloat-abi=hard"
139TUNE_PKGARCH_tune-armv7afpthf = "armv7afpthf"
140
141# thumb/v7-a+simd/softfp
142# CFLAGS: -mthumb -march=armv7-a+simd -mfloat-abi=softfp
143DEFAULTTUNE_virtclass-multilib-libv7asimdsoftfp = "armv7asimdsoftfp"
144
145AVAILTUNES += "armv7asimdsoftfp"
146PACKAGE_EXTRA_ARCHS_tune-armv7asimdsoftfp = "${TUNE_PKGARCH_tune-armv7asimdsoftfp}"
147BASE_LIB_tune-armv7asimdsoftfp = "lib/thumb/v7-a+simd/softfp"
148TUNE_FEATURES_tune-armv7asimdsoftfp = "arm"
149TUNE_CCARGS_tune-armv7asimdsoftfp = "-mthumb -march=armv7-a+simd -mfloat-abi=softfp"
150TUNE_PKGARCH_tune-armv7asimdsoftfp = "armv7asimdt"
151
152
153# thumb/v7-a+simd/hard
154# CFLAGS: -mthumb -march=armv7-a+simd -mfloat-abi=hard
155DEFAULTTUNE_virtclass-multilib-libv7asimdhard = "armv7asimdhard"
156
157AVAILTUNES += "armv7asimdhard"
158PACKAGE_EXTRA_ARCHS_tune-armv7asimdhard = "${TUNE_PKGARCH_tune-armv7asimdhard}"
159BASE_LIB_tune-armv7asimdhard = "lib/thumb/v7-a+simd/hard"
160TUNE_FEATURES_tune-armv7asimdhard = "arm"
161TUNE_CCARGS_tune-armv7asimdhard = "-mthumb -march=armv7-a+simd -mfloat-abi=hard"
162TUNE_PKGARCH_tune-armv7asimdhard = "armv7asimdthf"
163
164
165# thumb/v7ve+simd/softfp
166# CFLAGS: -mthumb -march=armv7ve+simd -mfloat-abi=softfp
167DEFAULTTUNE_virtclass-multilib-libv7vesimdsoftfp = "armv7vesimdsoftfp"
168
169AVAILTUNES += "armv7vesimdsoftfp"
170PACKAGE_EXTRA_ARCHS_tune-armv7vesimdsoftfp = "${TUNE_PKGARCH_tune-armv7vesimdsoftfp}"
171BASE_LIB_tune-armv7vesimdsoftfp = "lib/thumb/v7ve+simd/softfp"
172TUNE_FEATURES_tune-armv7vesimdsoftfp = "arm"
173TUNE_CCARGS_tune-armv7vesimdsoftfp = "-mthumb -march=armv7ve+simd -mfloat-abi=softfp"
174TUNE_PKGARCH_tune-armv7vesimdsoftfp = "armv7vesimdt"
175
176# thumb/v7ve+simd/hard
177# CFLAGS: -mthumb -march=armv7ve+simd -mfloat-abi=hard
178DEFAULTTUNE_virtclass-multilib-libvtvesimdhf = "armvtvesimdhf"
179
180AVAILTUNES += "armvtvesimdhf"
181PACKAGE_EXTRA_ARCHS_tune-armvtvesimdhf = "${TUNE_PKGARCH_tune-armvtvesimdhf}"
182BASE_LIB_tune-armvtvesimdhf = "lib/thumb/v7ve+simd/hard"
183TUNE_FEATURES_tune-armvtvesimdhf = "arm"
184TUNE_CCARGS_tune-armvtvesimdhf = "-mthumb -march=armv7ve+simd -mfloat-abi=hard"
185TUNE_PKGARCH_tune-armvtvesimdhf = "armv7vesimdthf"
186
187
188# thumb/v8-a/nofp
189# CFLAGS: -mthumb -march=armv8-a -mfloat-abi=soft
190DEFAULTTUNE_virtclass-multilib-libv8anofp = "armv8anofp"
191
192AVAILTUNES += "armv8anofp"
193PACKAGE_EXTRA_ARCHS_tune-armv8anofp = "${TUNE_PKGARCH_tune-armv8anofp}"
194BASE_LIB_tune-armv8anofp = "lib/thumb/v8-a/nofp"
195TUNE_FEATURES_tune-armv8anofp = "arm"
196TUNE_CCARGS_tune-armv8anofp = "-mthumb -march=armv8-a -mfloat-abi=soft"
197TUNE_PKGARCH_tune-armv8anofp = "armv8at"
198
199# thumb/v8-a+simd/softfp
200# CFLAGS: -mthumb -march=armv8-a+simd -mfloat-abi=softfp
201DEFAULTTUNE_virtclass-multilib-libv8asimdsoftfp = "armv8asimdsoftfp"
202
203AVAILTUNES += "armv8asimdsoftfp"
204PACKAGE_EXTRA_ARCHS_tune-armv8asimdsoftfp = "${TUNE_PKGARCH_tune-armv8asimdsoftfp}"
205BASE_LIB_tune-armv8asimdsoftfp = "lib/thumb/v8-a+simd/softfp"
206TUNE_FEATURES_tune-armv8asimdsoftfp = "arm"
207TUNE_CCARGS_tune-armv8asimdsoftfp = "-mthumb -march=armv8-a+simd -mfloat-abi=softfp"
208TUNE_PKGARCH_tune-armv8asimdsoftfp = "armv8asimdt"
209
210
211# thumb/v8-a+simd/hard
212# CFLAGS: -mthumb -march=armv8-a+simd -mfloat-abi=hard
213DEFAULTTUNE_virtclass-multilib-libv8asimdhard = "armv8asimdhard"
214
215AVAILTUNES += "armv8asimdhard"
216PACKAGE_EXTRA_ARCHS_tune-armv8asimdhard = "${TUNE_PKGARCH_tune-armv8asimdhard}"
217BASE_LIB_tune-armv8asimdhard = "lib/thumb/v8-a+simd/hard"
218TUNE_FEATURES_tune-armv8asimdhard = "arm"
219TUNE_CCARGS_tune-armv8asimdhard = "-mthumb -march=armv8-a+simd -mfloat-abi=hard"
220TUNE_PKGARCH_tune-armv8asimdhard = "armv8asimdthf"