soong: Add TARGET_USES_EGL_DISPLAY_ARRAY conditional
This soong variable is used to conditionally revert a commit [1]
which causes random camera crashes on tama devices
[1] a9550f3fe9
Change-Id: I749c7029f8f2b6d6d95b066aed4929c33e3c75e7
This commit is contained in:
committed by
Luca Stefani
parent
39881f863a
commit
20bf195599
@@ -353,6 +353,23 @@ camera_parameter_library {
|
||||
},
|
||||
}
|
||||
|
||||
soong_config_module_type {
|
||||
name: "egl_display_array",
|
||||
module_type: "cc_defaults",
|
||||
config_namespace: "lineageGlobalVars",
|
||||
bool_variables: ["uses_egl_display_array"],
|
||||
properties: ["cflags"],
|
||||
}
|
||||
|
||||
egl_display_array {
|
||||
name: "egl_display_array_defaults",
|
||||
soong_config_variables: {
|
||||
uses_egl_display_array: {
|
||||
cflags: ["-DEGL_DISPLAY_ARRAY"],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// NVIDIA specific config modules
|
||||
soong_config_module_type {
|
||||
name: "nvidia_enhancements",
|
||||
|
||||
@@ -43,7 +43,8 @@ SOONG_CONFIG_lineageGlobalVars += \
|
||||
target_trust_usb_control_path \
|
||||
target_trust_usb_control_enable \
|
||||
target_trust_usb_control_disable \
|
||||
uses_camera_parameter_lib
|
||||
uses_camera_parameter_lib \
|
||||
uses_egl_display_array
|
||||
|
||||
SOONG_CONFIG_NAMESPACES += lineageNvidiaVars
|
||||
SOONG_CONFIG_lineageNvidiaVars += \
|
||||
@@ -72,6 +73,7 @@ SOONG_CONFIG_lineageGlobalVars_has_memfd_backport := $(TARGET_HAS_MEMFD_BACKPORT
|
||||
SOONG_CONFIG_lineageGlobalVars_ignores_ftp_pptp_conntrack_failure := $(TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE)
|
||||
SOONG_CONFIG_lineageGlobalVars_needs_camera_boottime := $(TARGET_CAMERA_BOOTTIME_TIMESTAMP)
|
||||
SOONG_CONFIG_lineageGlobalVars_needs_netd_direct_connect_rule := $(TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE)
|
||||
SOONG_CONFIG_lineageGlobalVars_uses_egl_display_array := $(TARGET_USES_EGL_DISPLAY_ARRAY)
|
||||
SOONG_CONFIG_lineageNvidiaVars_uses_nvidia_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)
|
||||
SOONG_CONFIG_lineageQcomVars_legacy_hw_disk_encryption := $(TARGET_LEGACY_HW_DISK_ENCRYPTION)
|
||||
SOONG_CONFIG_lineageQcomVars_should_wait_for_qsee := $(TARGET_KEYMASTER_WAIT_FOR_QSEE)
|
||||
|
||||
Reference in New Issue
Block a user