1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
|
package {
default_applicable_licenses: ["Android-Apache-2.0"],
default_visibility: [
"//build/soong:__subpackages__",
],
default_team: "trendy_team_build",
}
subdirs = [
"androidmk",
"bpfix",
"cmd/*",
"fs",
"finder",
"jar",
"zip",
"third_party/zip",
"ui/*",
]
bootstrap_go_package {
name: "soong",
pkgPath: "android/soong",
deps: [
"blueprint",
],
srcs: [
"doc.go",
],
// Used by plugins, though probably shouldn't be.
visibility: ["//visibility:public"],
}
//
// Defaults to enable various configurations of host bionic
//
cc_defaults {
name: "linux_bionic_supported",
host_supported: true,
target: {
host: {
enabled: false,
},
linux_bionic: {
enabled: true,
},
},
defaults_visibility: ["//visibility:public"],
}
//
// C static libraries extracted from the gcc toolchain
//
kernel_headers {
name: "device_kernel_headers",
vendor: true,
recovery_available: true,
min_sdk_version: "apex_inherit",
visibility: ["//visibility:public"],
}
cc_genrule {
name: "host_bionic_linker_asm",
host_supported: true,
device_supported: false,
target: {
linux_bionic: {
enabled: true,
},
linux_musl: {
enabled: false,
},
linux_glibc: {
enabled: false,
},
darwin: {
enabled: false,
},
},
tools: ["extract_linker"],
cmd: "$(location) -s $(out) $(in)",
srcs: [":linker"],
out: ["linker.s"],
visibility: ["//bionic/libc"],
}
cc_genrule {
name: "host_bionic_linker_script",
host_supported: true,
device_supported: false,
target: {
linux_bionic: {
enabled: true,
},
linux_musl: {
enabled: false,
},
linux_glibc: {
enabled: false,
},
darwin: {
enabled: false,
},
},
tools: ["extract_linker"],
cmd: "$(location) -T $(out) $(in)",
srcs: [":linker"],
out: ["linker.script"],
visibility: ["//visibility:public"],
}
// Instantiate the dex_bootjars singleton module.
dex_bootjars {
name: "dex_bootjars",
visibility: ["//visibility:public"],
}
art_boot_images {
name: "art_boot_images",
visibility: ["//art:__subpackages__"],
}
// Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
// parse cc/config/global.go.
genrule {
name: "get_clang_version_test",
cmd: "$(location get_clang_version) > $(out)",
tools: ["get_clang_version"],
srcs: ["cc/config/global.go"],
out: ["clang-prebuilts-version.txt"],
}
dexpreopt_systemserver_check {
name: "dexpreopt_systemserver_check",
}
// container for apex_contributions selected using build flags
all_apex_contributions {
name: "all_apex_contributions",
visibility: ["//visibility:public"],
}
// Defaults to share configs between "baremetal" Soong modules, currently only
// used for code running in kernel context within Android Virtualization
// Framework guests.
cc_defaults {
name: "cc_baremetal_defaults",
arch: {
arm64: {
cflags: [
// Override the global -march= flag (as set by TARGET_ARCH_VARIANT)
// and explicitly use the baseline architecture (ARMv8-A is the first
// version with 64-bit support) to avoid emitting potentially
// unsupported instructions.
"-march=armv8-a",
],
},
},
defaults_visibility: ["//visibility:public"],
}
product_config {
name: "product_config",
visibility: [
"//build/make/target/product/generic",
"//build/soong/fsgen",
],
}
build_prop {
name: "system-build.prop",
stem: "build.prop",
product_config: ":product_config",
footer_files: [
":applied_backported_fixes",
],
dist: {
targets: [
"droidcore-unbundled",
"sdk",
],
},
// Currently, only microdroid, Ravenwood, and cf system image can refer to system-build.prop
visibility: [
"//build/soong/fsgen",
"//packages/modules/Virtualization/build/microdroid",
"//frameworks/base/ravenwood",
"//visibility:any_system_partition",
],
}
build_prop {
name: "system_ext-build.prop",
stem: "build.prop",
system_ext_specific: true,
product_config: ":product_config",
relative_install_path: "etc", // system_ext/etc/build.prop
dist: {
targets: ["droidcore-unbundled"],
dest: "build.prop-system_ext",
},
visibility: [
"//build/make/target/product/gsi",
"//build/soong/fsgen",
],
}
build_prop {
name: "product-build.prop",
stem: "build.prop",
product_specific: true,
product_config: ":product_config",
relative_install_path: "etc", // product/etc/build.prop
dist: {
targets: ["droidcore-unbundled"],
dest: "build.prop-product",
},
visibility: [
"//build/make/target/product/gsi",
"//build/soong/fsgen",
],
}
build_prop {
name: "odm-build.prop",
stem: "build.prop",
device_specific: true,
product_config: ":product_config",
relative_install_path: "etc", // odm/etc/build.prop
dist: {
targets: ["droidcore-unbundled"],
dest: "build.prop-odm",
},
visibility: ["//build/soong/fsgen"],
}
build_prop {
name: "system_dlkm-build.prop",
stem: "build.prop",
system_dlkm_specific: true,
product_config: ":product_config",
relative_install_path: "etc", // system_dlkm/etc/build.prop
visibility: ["//visibility:private"],
}
build_prop {
name: "vendor_dlkm-build.prop",
stem: "build.prop",
vendor_dlkm_specific: true,
product_config: ":product_config",
relative_install_path: "etc", // vendor_dlkm/etc/build.prop
visibility: ["//visibility:private"],
}
build_prop {
name: "odm_dlkm-build.prop",
stem: "build.prop",
odm_dlkm_specific: true,
product_config: ":product_config",
relative_install_path: "etc", // odm_dlkm/etc/build.prop
visibility: ["//visibility:private"],
}
build_prop {
name: "ramdisk-build.prop",
stem: "build.prop",
ramdisk: true,
product_config: ":product_config",
relative_install_path: "etc/ramdisk", // ramdisk/system/etc/ramdisk/build.prop
dist: {
targets: ["droidcore-unbundled"],
dest: "build.prop-ramdisk",
},
visibility: ["//visibility:private"],
}
all_apex_certs {
name: "all_apex_certs",
visibility: [
"//cts/tests/tests/security",
"//cts/hostsidetests/appsecurity",
],
}
|