blob: af09475cd76494e58c19d12d7c41694bac6dba0d [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 {
Arne Coucherona31f8f92020-11-07 00:46:10 +010054 name: "disable_postrender_cleanup",
55 module_type: "cc_defaults",
56 config_namespace: "blissGlobalVars",
57 bool_variables: ["disable_postrender_cleanup"],
58 properties: ["cppflags"],
59}
60
61disable_postrender_cleanup {
62 name: "disable_postrender_cleanup_defaults",
63 soong_config_variables: {
64 disable_postrender_cleanup: {
65 cppflags: ["-DDISABLE_POSTRENDER_CLEANUP"],
66 },
67 },
68}
69
70soong_config_module_type {
Pig02f678a2020-10-15 02:58:37 +080071 name: "gralloc_10_usage_bits",
72 module_type: "cc_defaults",
73 config_namespace: "blissGlobalVars",
74 value_variables: ["additional_gralloc_10_usage_bits"],
75 properties: ["cppflags"],
76}
77
78gralloc_10_usage_bits {
79 name: "gralloc_10_usage_bits_defaults",
80 soong_config_variables: {
81 additional_gralloc_10_usage_bits: {
82 cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"],
83 },
84 },
85}
86
87soong_config_module_type {
88 name: "target_process_sdk_version_overrides",
89 module_type: "cc_defaults",
90 config_namespace: "blissGlobalVars",
91 value_variables: ["target_process_sdk_version_override"],
92 properties: ["cppflags"],
93}
94
95target_process_sdk_version_overrides {
96 name: "process_sdk_version_overrides_defaults",
97 soong_config_variables: {
98 target_process_sdk_version_override: {
99 cppflags: ["-DSDK_VERSION_OVERRIDES=\"%s\""],
100 },
101 },
102}
103
104soong_config_module_type {
105 name: "target_shim_libs",
106 module_type: "cc_defaults",
107 config_namespace: "blissGlobalVars",
108 value_variables: ["target_ld_shim_libs"],
109 properties: ["cppflags"],
110}
111
112target_shim_libs {
113 name: "shim_libs_defaults",
114 soong_config_variables: {
115 target_ld_shim_libs: {
116 cppflags: ["-DLD_SHIM_LIBS=\"%s\""],
117 },
118 },
119}
120
121soong_config_module_type {
122 name: "vendor_init",
123 module_type: "cc_defaults",
124 config_namespace: "blissGlobalVars",
125 value_variables: ["target_init_vendor_lib"],
126 properties: ["whole_static_libs"],
127}
128
129vendor_init {
130 name: "vendor_init_defaults",
131 soong_config_variables: {
132 target_init_vendor_lib: {
133 whole_static_libs: ["%s"],
134 },
135 },
136}
137
138soong_config_module_type {
TheScarastic8541a942021-10-19 08:07:54 +0000139 name: "surfaceflinger_udfps_lib",
Pig02f678a2020-10-15 02:58:37 +0800140 module_type: "cc_defaults",
141 config_namespace: "blissGlobalVars",
TheScarastic8541a942021-10-19 08:07:54 +0000142 value_variables: ["target_surfaceflinger_udfps_lib"],
Pig02f678a2020-10-15 02:58:37 +0800143 properties: [
144 "cppflags",
145 "whole_static_libs",
146 ],
147}
148
TheScarastic8541a942021-10-19 08:07:54 +0000149surfaceflinger_udfps_lib {
150 name: "surfaceflinger_udfps_lib_defaults",
Pig02f678a2020-10-15 02:58:37 +0800151 soong_config_variables: {
TheScarastic8541a942021-10-19 08:07:54 +0000152 target_surfaceflinger_udfps_lib: {
153 cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"],
Pig02f678a2020-10-15 02:58:37 +0800154 whole_static_libs: ["%s"],
155 },
156 },
157}
158
159soong_config_module_type {
160 name: "ignores_ftp_pptp_conntrack_failure_defaults",
161 module_type: "cc_defaults",
162 config_namespace: "blissGlobalVars",
163 bool_variables: ["ignores_ftp_pptp_conntrack_failure"],
164 properties: ["cppflags"],
165}
166
167ignores_ftp_pptp_conntrack_failure_defaults {
168 name: "ignores_ftp_pptp_conntrack_failure",
169 soong_config_variables: {
170 ignores_ftp_pptp_conntrack_failure: {
Aayush Gupta3f8f66c2020-10-21 16:29:53 +0530171 cppflags: ["-DIGNORES_FTP_PPTP_CONNTRACK_FAILURE"],
Pig02f678a2020-10-15 02:58:37 +0800172 },
173 },
174}
175
176soong_config_module_type {
177 name: "needs_netd_direct_connect_rule",
178 module_type: "cc_defaults",
179 config_namespace: "blissGlobalVars",
180 bool_variables: ["needs_netd_direct_connect_rule"],
181 properties: ["cppflags"],
182}
183
184needs_netd_direct_connect_rule {
185 name: "needs_netd_direct_connect_rule_defaults",
186 soong_config_variables: {
187 needs_netd_direct_connect_rule: {
188 cppflags: ["-DNEEDS_NETD_DIRECT_CONNECT_RULE"],
189 },
190 },
191}
192
193soong_config_module_type {
Nolen Johnson9020f282021-02-22 12:36:48 -0500194 name: "legacy_hw_disk_encryption",
195 module_type: "cc_defaults",
196 config_namespace: "blissQcomVars",
197 bool_variables: ["legacy_hw_disk_encryption"],
198 properties: ["cppflags"],
199}
200
201legacy_hw_disk_encryption {
202 name: "legacy_hw_disk_encryption_defaults",
203 soong_config_variables: {
204 legacy_hw_disk_encryption: {
205 cppflags: ["-DLEGACY_HW_DISK_ENCRYPTION"],
206 },
207 },
208}
209
210soong_config_module_type {
Lup Gabriel09fc6852021-06-06 18:24:41 +0900211 name: "camera_needs_client_info",
Marko Man25a4ca42021-08-06 22:26:43 -0500212 module_type: "cc_defaults",
213 config_namespace: "blissGlobalVars",
Lup Gabriel09fc6852021-06-06 18:24:41 +0900214 bool_variables: ["camera_needs_client_info"],
Marko Man25a4ca42021-08-06 22:26:43 -0500215 properties: ["cppflags"],
216}
217
Lup Gabriel09fc6852021-06-06 18:24:41 +0900218camera_needs_client_info {
219 name: "camera_needs_client_info_defaults",
Marko Man25a4ca42021-08-06 22:26:43 -0500220 soong_config_variables: {
Lup Gabriel09fc6852021-06-06 18:24:41 +0900221 camera_needs_client_info: {
222 cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO"],
Marko Man25a4ca42021-08-06 22:26:43 -0500223 },
224 },
225}
226
227soong_config_module_type {
Pig02f678a2020-10-15 02:58:37 +0800228 name: "no_cameraserver",
229 module_type: "cc_defaults",
230 config_namespace: "blissGlobalVars",
231 bool_variables: ["has_legacy_camera_hal1"],
232 properties: [
233 "cppflags",
234 ],
235}
236
237no_cameraserver {
238 name: "no_cameraserver_defaults",
239 soong_config_variables: {
240 has_legacy_camera_hal1: {
241 cppflags: [
242 "-DNO_CAMERA_SERVER",
243 "-Wno-overloaded-virtual",
244 ],
245 },
246 },
247}
248
249soong_config_module_type {
250 name: "camera_in_mediaserver",
251 module_type: "cc_defaults",
252 config_namespace: "blissGlobalVars",
253 bool_variables: ["has_legacy_camera_hal1"],
254 properties: [
255 "overrides",
256 "shared_libs",
257 ],
258}
259
260camera_in_mediaserver {
261 name: "camera_in_mediaserver_defaults",
262 defaults: ["no_cameraserver_defaults"],
263 soong_config_variables: {
264 has_legacy_camera_hal1: {
265 overrides: ["cameraserver"],
266 shared_libs: [
267 "android.hardware.camera.common@1.0",
268 "android.hardware.camera.device@3.4",
269 "android.hardware.camera.provider@2.6",
Kyle Harrisonb929b8f2021-10-27 14:54:44 +0100270 "android.hardware.camera.provider@2.7",
Pig02f678a2020-10-15 02:58:37 +0800271 "libcameraservice",
272 "libgui",
273 ],
274 },
275 },
276}
277
278soong_config_module_type {
Jan Altensena61f9302020-10-17 18:10:26 +0200279 name: "has_memfd_backport",
280 module_type: "cc_defaults",
281 config_namespace: "blissGlobalVars",
282 bool_variables: ["has_memfd_backport"],
283 properties: ["cppflags"],
284}
285
286has_memfd_backport {
287 name: "has_memfd_backport_defaults",
288 soong_config_variables: {
289 has_memfd_backport: {
290 cppflags: ["-DHAS_MEMFD_BACKPORT"],
291 },
292 },
293}
294
295soong_config_module_type {
Pig02f678a2020-10-15 02:58:37 +0800296 name: "bootloader_message_offset",
297 module_type: "cc_defaults",
298 config_namespace: "blissGlobalVars",
299 value_variables: ["bootloader_message_offset"],
Michael Bestas3f0035a2021-10-07 21:01:15 +0300300 properties: ["cflags"],
Pig02f678a2020-10-15 02:58:37 +0800301}
302
303bootloader_message_offset {
304 name: "bootloader_message_offset_defaults",
305 soong_config_variables: {
306 bootloader_message_offset: {
307 cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"],
308 },
309 },
310}
311
312soong_config_module_type {
313 name: "camera_parameter_library",
314 module_type: "cc_defaults",
315 config_namespace: "blissGlobalVars",
316 value_variables: ["uses_camera_parameter_lib"],
317 properties: ["whole_static_libs"],
318}
319
320camera_parameter_library {
321 name: "camera_parameter_library_defaults",
322 soong_config_variables: {
323 uses_camera_parameter_lib: {
324 whole_static_libs: ["%s"],
325 },
326 },
327}
328
329// NVIDIA specific config modules
330soong_config_module_type {
331 name: "nvidia_enhancements",
332 module_type: "cc_defaults",
333 config_namespace: "blissNvidiaVars",
334 bool_variables: ["uses_nvidia_enhancements"],
335 properties: ["cppflags"],
336}
337
338nvidia_enhancements {
339 name: "nvidia_enhancements_defaults",
340 soong_config_variables: {
341 uses_nvidia_enhancements: {
342 cppflags: ["-DNV_ANDROID_FRAMEWORK_ENHANCEMENTS"],
343 },
344 },
345}
346
347// QCOM specific config modules
348soong_config_module_type {
349 name: "librmnetctl_pre_uplink",
350 module_type: "cc_defaults",
351 config_namespace: "blissQcomVars",
352 bool_variables: ["uses_pre_uplink_features_netmgrd"],
353 properties: ["cflags"],
354}
355
356librmnetctl_pre_uplink {
357 name: "librmnetctl_pre_uplink_defaults",
358 soong_config_variables: {
359 uses_pre_uplink_features_netmgrd: {
360 cflags: ["-DNO_UPLINK_FEATURES"],
361 },
362 },
363}
364
365soong_config_module_type {
366 name: "qti_camera_device",
367 module_type: "cc_defaults",
368 config_namespace: "blissQcomVars",
369 bool_variables: ["uses_qti_camera_device"],
370 properties: [
371 "cppflags",
372 "shared_libs",
373 ],
374}
375
376qti_camera_device {
377 name: "qti_camera_device_defaults",
378 soong_config_variables: {
379 uses_qti_camera_device: {
380 cppflags: ["-DQTI_CAMERA_DEVICE"],
381 shared_libs: ["vendor.qti.hardware.camera.device@1.0"],
382 },
383 },
384}
385
386soong_config_module_type {
LuK1337e7aff482021-04-10 10:56:15 +0200387 name: "qti_usb_hal_supported_modes",
388 module_type: "cc_defaults",
389 config_namespace: "blissQcomVars",
390 bool_variables: ["supports_audio_accessory", "supports_debug_accessory"],
391 properties: [
392 "cppflags",
393 ],
394}
395
396qti_usb_hal_supported_modes {
397 name: "qti_usb_hal_supported_modes_defaults",
398 soong_config_variables: {
399 supports_audio_accessory: {
400 cppflags: ["-DSUPPORTS_AUDIO_ACCESSORY"],
401 },
402 supports_debug_accessory: {
403 cppflags: ["-DSUPPORTS_DEBUG_ACCESSORY"],
404 },
405 },
406}
407
408soong_config_module_type {
jhenrique09ad4d1ad2020-11-23 14:20:20 +0000409 name: "camera_boottime_timestamp",
410 module_type: "cc_defaults",
411 config_namespace: "blissQcomVars",
412 bool_variables: ["needs_camera_boottime_timestamp"],
413 properties: [
414 "cflags",
415 ],
416}
417
418camera_boottime_timestamp {
419 name: "needs_camera_boottime_defaults",
420 soong_config_variables: {
421 needs_camera_boottime_timestamp: {
422 cflags: ["-DTARGET_CAMERA_BOOTTIME_TIMESTAMP"],
423 },
424 },
425}
426
427soong_config_module_type {
Pig02f678a2020-10-15 02:58:37 +0800428 name: "extended_compress_format",
429 module_type: "cc_defaults",
430 config_namespace: "blissQcomVars",
431 bool_variables: ["supports_extended_compress_format"],
432 properties: ["cflags"],
433}
434
435extended_compress_format {
436 name: "extended_compress_format_defaults",
437 soong_config_variables: {
438 supports_extended_compress_format: {
439 cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"],
440 },
441 },
442}
443
444soong_config_module_type {
445 name: "vold_hw_fde",
446 module_type: "cc_defaults",
447 config_namespace: "blissQcomVars",
448 bool_variables: ["supports_hw_fde"],
449 properties: [
450 "cflags",
451 "header_libs",
452 "shared_libs",
453 ],
454}
455
456vold_hw_fde {
457 name: "vold_hw_fde_defaults",
458 soong_config_variables: {
459 supports_hw_fde: {
460 cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"],
461 header_libs: ["libcryptfs_hw_headers"],
462 shared_libs: ["libcryptfs_hw"],
463 },
464 },
465}
466
467soong_config_module_type {
468 name: "vold_hw_fde_perf",
469 module_type: "cc_defaults",
470 config_namespace: "blissQcomVars",
471 bool_variables: ["supports_hw_fde_perf"],
472 properties: [
473 "cflags",
474 "shared_libs",
475 ],
476}
477
478vold_hw_fde_perf {
479 name: "vold_hw_fde_perf_defaults",
480 soong_config_variables: {
481 supports_hw_fde_perf: {
482 cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"],
483 shared_libs: ["libcryptfs_hw"],
484 },
485 },
486}
487
488soong_config_module_type {
489 name: "qti_cryptfshw_qsee",
490 module_type: "cc_defaults",
491 config_namespace: "blissQcomVars",
492 bool_variables: ["should_wait_for_qsee"],
493 properties: ["cflags"],
494}
495
496qti_cryptfshw_qsee {
497 name: "qti_cryptfshw_qsee_defaults",
498 soong_config_variables: {
499 should_wait_for_qsee: {
500 cflags: ["-DWAIT_FOR_QSEE"],
501 },
502 },
503}
504
505soong_config_module_type {
506 name: "surfaceflinger_qcom_extensions",
507 module_type: "cc_defaults",
508 config_namespace: "blissQcomVars",
Alessandro Astone3fc779e2021-01-05 18:04:14 +0100509 value_variables: ["qcom_display_headers_namespace"],
Pig02f678a2020-10-15 02:58:37 +0800510 properties: [
511 "cppflags",
512 "header_libs",
513 ],
514}
515
516surfaceflinger_qcom_extensions {
517 name: "surfaceflinger_qcom_ext_defaults",
518 soong_config_variables: {
Alessandro Astone3fc779e2021-01-05 18:04:14 +0100519 qcom_display_headers_namespace: {
Pig02f678a2020-10-15 02:58:37 +0800520 cppflags: ["-DQCOM_UM_FAMILY"],
Alessandro Astone3fc779e2021-01-05 18:04:14 +0100521 header_libs: ["//%s:display_intf_headers"],
Pig02f678a2020-10-15 02:58:37 +0800522 },
523 },
524}
525
526soong_config_module_type {
527 name: "stagefright_qcom_legacy",
528 module_type: "cc_defaults",
529 config_namespace: "blissQcomVars",
530 bool_variables: ["uses_qcom_bsp_legacy"],
531 properties: ["cppflags"],
532}
533
534stagefright_qcom_legacy {
535 name: "stagefright_qcom_legacy_defaults",
536 soong_config_variables: {
537 uses_qcom_bsp_legacy: {
538 cppflags: ["-DQCOM_BSP_LEGACY"],
539 },
540 },
541}
daniml325cc5272021-01-21 16:56:41 +0100542soong_config_module_type {
543 name: "inputdispatcher_skip_event_key",
544 module_type: "cc_defaults",
545 config_namespace: "blissGlobalVars",
546 value_variables: ["target_inputdispatcher_skip_event_key"],
547 properties: ["cppflags"],
548}
549
550inputdispatcher_skip_event_key {
551 name: "inputdispatcher_skip_event_key_defaults",
552 soong_config_variables: {
553 target_inputdispatcher_skip_event_key: {
554 cppflags: ["-DINPUTDISPATCHER_SKIP_EVENT_KEY=%s"],
555 },
556 },
557}