blob: 81a6c5375f2fd9b83b1e56d7d8a6919509cff1d6 [file] [log] [blame]
Pig02f678a2020-10-15 02:58:37 +08001// Bliss soong configs
2
Simon Shields4ed46052017-08-23 12:03:36 +10003bootstrap_go_package {
Jackeagled6811aa2019-09-24 08:26:40 +02004 name: "soong-bliss-generator",
5 pkgPath: "bliss/soong/generator",
Sam Mortimer80381b72018-09-18 15:56:14 -07006 deps: [
7 "blueprint",
8 "blueprint-pathtools",
9 "soong",
10 "soong-android",
11 "soong-shared",
12 ],
13 srcs: [
14 "generator/generator.go",
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070015 "generator/variables.go",
Sam Mortimer80381b72018-09-18 15:56:14 -070016 ],
17 pluginFor: ["soong_build"],
18}
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070019
Jackeagled6811aa2019-09-24 08:26:40 +020020bliss_generator {
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070021 name: "generated_kernel_includes",
22
23 // The headers make command
Rashed Abdel-Tawabba5ea352019-09-07 17:01:13 -070024 cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070025
26 // Directories that can be imported by a cc_* module generated_headers property
dianlujitao9dfd5f72020-03-03 17:26:32 +080027 export_include_dirs: [
dianlujitao83d2fa42020-06-28 22:16:44 +080028 "usr/audio/include/uapi",
dianlujitao9dfd5f72020-03-03 17:26:32 +080029 "usr/include",
30 "usr/include/audio/include/uapi",
Pigf6e0a852020-10-15 02:58:37 +080031 "usr/techpack/audio/include",
dianlujitao9dfd5f72020-03-03 17:26:32 +080032 ],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070033
34 // Sources for dependency tracking
35 dep_root: "$(TARGET_KERNEL_SOURCE)",
Pigf6e0a852020-10-15 02:58:37 +080036 dep_files: [
37 "Makefile",
38 "include/**/*",
39 "arch/$(KERNEL_ARCH)/include/**/*",
40 "techpack/audio/include/**/*",
41 ],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070042}
43
44cc_library_headers {
45 name: "generated_kernel_headers",
46 generated_headers: ["generated_kernel_includes"],
47 export_generated_headers: ["generated_kernel_includes"],
48 vendor_available: true,
LuK133743442c22019-09-09 21:58:19 +020049 recovery_available: true,
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070050}
Pig02f678a2020-10-15 02:58:37 +080051
52// Target platform agnostic config modules
53soong_config_module_type {
54 name: "gralloc_10_usage_bits",
55 module_type: "cc_defaults",
56 config_namespace: "blissGlobalVars",
57 value_variables: ["additional_gralloc_10_usage_bits"],
58 properties: ["cppflags"],
59}
60
61gralloc_10_usage_bits {
62 name: "gralloc_10_usage_bits_defaults",
63 soong_config_variables: {
64 additional_gralloc_10_usage_bits: {
65 cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"],
66 },
67 },
68}
69
70soong_config_module_type {
71 name: "target_process_sdk_version_overrides",
72 module_type: "cc_defaults",
73 config_namespace: "blissGlobalVars",
74 value_variables: ["target_process_sdk_version_override"],
75 properties: ["cppflags"],
76}
77
78target_process_sdk_version_overrides {
79 name: "process_sdk_version_overrides_defaults",
80 soong_config_variables: {
81 target_process_sdk_version_override: {
82 cppflags: ["-DSDK_VERSION_OVERRIDES=\"%s\""],
83 },
84 },
85}
86
87soong_config_module_type {
88 name: "target_shim_libs",
89 module_type: "cc_defaults",
90 config_namespace: "blissGlobalVars",
91 value_variables: ["target_ld_shim_libs"],
92 properties: ["cppflags"],
93}
94
95target_shim_libs {
96 name: "shim_libs_defaults",
97 soong_config_variables: {
98 target_ld_shim_libs: {
99 cppflags: ["-DLD_SHIM_LIBS=\"%s\""],
100 },
101 },
102}
103
104soong_config_module_type {
105 name: "vendor_init",
106 module_type: "cc_defaults",
107 config_namespace: "blissGlobalVars",
108 value_variables: ["target_init_vendor_lib"],
109 properties: ["whole_static_libs"],
110}
111
112vendor_init {
113 name: "vendor_init_defaults",
114 soong_config_variables: {
115 target_init_vendor_lib: {
116 whole_static_libs: ["%s"],
117 },
118 },
119}
120
121soong_config_module_type {
122 name: "surfaceflinger_fod_lib",
123 module_type: "cc_defaults",
124 config_namespace: "blissGlobalVars",
125 value_variables: ["target_surfaceflinger_fod_lib"],
126 properties: [
127 "cppflags",
128 "whole_static_libs",
129 ],
130}
131
132surfaceflinger_fod_lib {
133 name: "surfaceflinger_fod_lib_defaults",
134 soong_config_variables: {
135 target_surfaceflinger_fod_lib: {
136 cppflags: ["-DTARGET_PROVIDES_FOD_LIB"],
137 whole_static_libs: ["%s"],
138 },
139 },
140}
141
142soong_config_module_type {
143 name: "ignores_ftp_pptp_conntrack_failure_defaults",
144 module_type: "cc_defaults",
145 config_namespace: "blissGlobalVars",
146 bool_variables: ["ignores_ftp_pptp_conntrack_failure"],
147 properties: ["cppflags"],
148}
149
150ignores_ftp_pptp_conntrack_failure_defaults {
151 name: "ignores_ftp_pptp_conntrack_failure",
152 soong_config_variables: {
153 ignores_ftp_pptp_conntrack_failure: {
154 cppflags: ["DIGNORES_FTP_PPTP_CONNTRACK_FAILURE"],
155 },
156 },
157}
158
159soong_config_module_type {
160 name: "needs_netd_direct_connect_rule",
161 module_type: "cc_defaults",
162 config_namespace: "blissGlobalVars",
163 bool_variables: ["needs_netd_direct_connect_rule"],
164 properties: ["cppflags"],
165}
166
167needs_netd_direct_connect_rule {
168 name: "needs_netd_direct_connect_rule_defaults",
169 soong_config_variables: {
170 needs_netd_direct_connect_rule: {
171 cppflags: ["-DNEEDS_NETD_DIRECT_CONNECT_RULE"],
172 },
173 },
174}
175
176soong_config_module_type {
177 name: "no_cameraserver",
178 module_type: "cc_defaults",
179 config_namespace: "blissGlobalVars",
180 bool_variables: ["has_legacy_camera_hal1"],
181 properties: [
182 "cppflags",
183 ],
184}
185
186no_cameraserver {
187 name: "no_cameraserver_defaults",
188 soong_config_variables: {
189 has_legacy_camera_hal1: {
190 cppflags: [
191 "-DNO_CAMERA_SERVER",
192 "-Wno-overloaded-virtual",
193 ],
194 },
195 },
196}
197
198soong_config_module_type {
199 name: "camera_in_mediaserver",
200 module_type: "cc_defaults",
201 config_namespace: "blissGlobalVars",
202 bool_variables: ["has_legacy_camera_hal1"],
203 properties: [
204 "overrides",
205 "shared_libs",
206 ],
207}
208
209camera_in_mediaserver {
210 name: "camera_in_mediaserver_defaults",
211 defaults: ["no_cameraserver_defaults"],
212 soong_config_variables: {
213 has_legacy_camera_hal1: {
214 overrides: ["cameraserver"],
215 shared_libs: [
216 "android.hardware.camera.common@1.0",
217 "android.hardware.camera.device@3.4",
218 "android.hardware.camera.provider@2.6",
219 "libcameraservice",
220 "libgui",
221 ],
222 },
223 },
224}
225
226soong_config_module_type {
227 name: "bootloader_message_offset",
228 module_type: "cc_defaults",
229 config_namespace: "blissGlobalVars",
230 value_variables: ["bootloader_message_offset"],
231 properties: ["cflags"],
232}
233
234bootloader_message_offset {
235 name: "bootloader_message_offset_defaults",
236 soong_config_variables: {
237 bootloader_message_offset: {
238 cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"],
239 },
240 },
241}
242
243soong_config_module_type {
244 name: "camera_parameter_library",
245 module_type: "cc_defaults",
246 config_namespace: "blissGlobalVars",
247 value_variables: ["uses_camera_parameter_lib"],
248 properties: ["whole_static_libs"],
249}
250
251camera_parameter_library {
252 name: "camera_parameter_library_defaults",
253 soong_config_variables: {
254 uses_camera_parameter_lib: {
255 whole_static_libs: ["%s"],
256 },
257 },
258}
259
260// NVIDIA specific config modules
261soong_config_module_type {
262 name: "nvidia_enhancements",
263 module_type: "cc_defaults",
264 config_namespace: "blissNvidiaVars",
265 bool_variables: ["uses_nvidia_enhancements"],
266 properties: ["cppflags"],
267}
268
269nvidia_enhancements {
270 name: "nvidia_enhancements_defaults",
271 soong_config_variables: {
272 uses_nvidia_enhancements: {
273 cppflags: ["-DNV_ANDROID_FRAMEWORK_ENHANCEMENTS"],
274 },
275 },
276}
277
278// QCOM specific config modules
279soong_config_module_type {
280 name: "librmnetctl_pre_uplink",
281 module_type: "cc_defaults",
282 config_namespace: "blissQcomVars",
283 bool_variables: ["uses_pre_uplink_features_netmgrd"],
284 properties: ["cflags"],
285}
286
287librmnetctl_pre_uplink {
288 name: "librmnetctl_pre_uplink_defaults",
289 soong_config_variables: {
290 uses_pre_uplink_features_netmgrd: {
291 cflags: ["-DNO_UPLINK_FEATURES"],
292 },
293 },
294}
295
296soong_config_module_type {
297 name: "qti_camera_device",
298 module_type: "cc_defaults",
299 config_namespace: "blissQcomVars",
300 bool_variables: ["uses_qti_camera_device"],
301 properties: [
302 "cppflags",
303 "shared_libs",
304 ],
305}
306
307qti_camera_device {
308 name: "qti_camera_device_defaults",
309 soong_config_variables: {
310 uses_qti_camera_device: {
311 cppflags: ["-DQTI_CAMERA_DEVICE"],
312 shared_libs: ["vendor.qti.hardware.camera.device@1.0"],
313 },
314 },
315}
316
317soong_config_module_type {
318 name: "extended_compress_format",
319 module_type: "cc_defaults",
320 config_namespace: "blissQcomVars",
321 bool_variables: ["supports_extended_compress_format"],
322 properties: ["cflags"],
323}
324
325extended_compress_format {
326 name: "extended_compress_format_defaults",
327 soong_config_variables: {
328 supports_extended_compress_format: {
329 cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"],
330 },
331 },
332}
333
334soong_config_module_type {
335 name: "vold_hw_fde",
336 module_type: "cc_defaults",
337 config_namespace: "blissQcomVars",
338 bool_variables: ["supports_hw_fde"],
339 properties: [
340 "cflags",
341 "header_libs",
342 "shared_libs",
343 ],
344}
345
346vold_hw_fde {
347 name: "vold_hw_fde_defaults",
348 soong_config_variables: {
349 supports_hw_fde: {
350 cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"],
351 header_libs: ["libcryptfs_hw_headers"],
352 shared_libs: ["libcryptfs_hw"],
353 },
354 },
355}
356
357soong_config_module_type {
358 name: "vold_hw_fde_perf",
359 module_type: "cc_defaults",
360 config_namespace: "blissQcomVars",
361 bool_variables: ["supports_hw_fde_perf"],
362 properties: [
363 "cflags",
364 "shared_libs",
365 ],
366}
367
368vold_hw_fde_perf {
369 name: "vold_hw_fde_perf_defaults",
370 soong_config_variables: {
371 supports_hw_fde_perf: {
372 cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"],
373 shared_libs: ["libcryptfs_hw"],
374 },
375 },
376}
377
378soong_config_module_type {
379 name: "qti_cryptfshw_qsee",
380 module_type: "cc_defaults",
381 config_namespace: "blissQcomVars",
382 bool_variables: ["should_wait_for_qsee"],
383 properties: ["cflags"],
384}
385
386qti_cryptfshw_qsee {
387 name: "qti_cryptfshw_qsee_defaults",
388 soong_config_variables: {
389 should_wait_for_qsee: {
390 cflags: ["-DWAIT_FOR_QSEE"],
391 },
392 },
393}
394
395soong_config_module_type {
396 name: "surfaceflinger_qcom_extensions",
397 module_type: "cc_defaults",
398 config_namespace: "blissQcomVars",
399 value_variables: ["qcom_soong_namespace"],
400 properties: [
401 "cppflags",
402 "header_libs",
403 ],
404}
405
406surfaceflinger_qcom_extensions {
407 name: "surfaceflinger_qcom_ext_defaults",
408 soong_config_variables: {
409 qcom_soong_namespace: {
410 cppflags: ["-DQCOM_UM_FAMILY"],
411 header_libs: ["//%s/display:display_intf_headers"],
412 },
413 },
414}
415
416soong_config_module_type {
417 name: "stagefright_qcom_legacy",
418 module_type: "cc_defaults",
419 config_namespace: "blissQcomVars",
420 bool_variables: ["uses_qcom_bsp_legacy"],
421 properties: ["cppflags"],
422}
423
424stagefright_qcom_legacy {
425 name: "stagefright_qcom_legacy_defaults",
426 soong_config_variables: {
427 uses_qcom_bsp_legacy: {
428 cppflags: ["-DQCOM_BSP_LEGACY"],
429 },
430 },
431}