soong: Move QTI gralloc configs to select()
Change-Id: Icb28d5c2aa5d51860799b87b7b9b04c48014f7f4
This commit is contained in:
committed by
Bruno Martins
parent
d690c9eb9f
commit
695e44e1ba
@@ -111,57 +111,6 @@ gralloc_10_usage_bits {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
soong_config_module_type {
|
|
||||||
name: "gralloc_handle_custom_content_md_reserved_size",
|
|
||||||
module_type: "cc_defaults",
|
|
||||||
config_namespace: "lineageGlobalVars",
|
|
||||||
bool_variables: ["gralloc_handle_has_custom_content_md_reserved_size"],
|
|
||||||
properties: ["export_cflags"],
|
|
||||||
}
|
|
||||||
|
|
||||||
gralloc_handle_custom_content_md_reserved_size {
|
|
||||||
name: "gralloc_handle_has_custom_content_md_reserved_size_defaults",
|
|
||||||
soong_config_variables: {
|
|
||||||
gralloc_handle_has_custom_content_md_reserved_size: {
|
|
||||||
export_cflags: ["-DGRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
soong_config_module_type {
|
|
||||||
name: "gralloc_handle_reserved_size",
|
|
||||||
module_type: "cc_defaults",
|
|
||||||
config_namespace: "lineageGlobalVars",
|
|
||||||
bool_variables: ["gralloc_handle_has_reserved_size"],
|
|
||||||
properties: ["export_cflags"],
|
|
||||||
}
|
|
||||||
|
|
||||||
gralloc_handle_reserved_size {
|
|
||||||
name: "gralloc_handle_has_reserved_size_defaults",
|
|
||||||
soong_config_variables: {
|
|
||||||
gralloc_handle_has_reserved_size: {
|
|
||||||
export_cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
soong_config_module_type {
|
|
||||||
name: "gralloc_handle_ubwcp_format",
|
|
||||||
module_type: "cc_defaults",
|
|
||||||
config_namespace: "lineageGlobalVars",
|
|
||||||
bool_variables: ["gralloc_handle_has_ubwcp_format"],
|
|
||||||
properties: ["export_cflags"],
|
|
||||||
}
|
|
||||||
|
|
||||||
gralloc_handle_ubwcp_format {
|
|
||||||
name: "gralloc_handle_has_ubwcp_format_defaults",
|
|
||||||
soong_config_variables: {
|
|
||||||
gralloc_handle_has_ubwcp_format: {
|
|
||||||
export_cflags: ["-DGRALLOC_HANDLE_HAS_UBWCP_FORMAT"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
soong_config_module_type {
|
soong_config_module_type {
|
||||||
name: "vendor_init",
|
name: "vendor_init",
|
||||||
module_type: "cc_defaults",
|
module_type: "cc_defaults",
|
||||||
|
@@ -31,9 +31,6 @@ SOONG_CONFIG_lineageGlobalVars += \
|
|||||||
additional_gralloc_10_usage_bits \
|
additional_gralloc_10_usage_bits \
|
||||||
bootloader_message_offset \
|
bootloader_message_offset \
|
||||||
camera_override_format_from_reserved \
|
camera_override_format_from_reserved \
|
||||||
gralloc_handle_has_custom_content_md_reserved_size \
|
|
||||||
gralloc_handle_has_reserved_size \
|
|
||||||
gralloc_handle_has_ubwcp_format \
|
|
||||||
target_health_charging_control_charging_enabled \
|
target_health_charging_control_charging_enabled \
|
||||||
target_health_charging_control_charging_disabled \
|
target_health_charging_control_charging_disabled \
|
||||||
target_health_charging_control_deadline_path \
|
target_health_charging_control_deadline_path \
|
||||||
@@ -58,17 +55,11 @@ endif
|
|||||||
|
|
||||||
# Soong bool variables
|
# Soong bool variables
|
||||||
SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED)
|
SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED)
|
||||||
SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_custom_content_md_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE)
|
|
||||||
SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE)
|
|
||||||
SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_ubwcp_format := $(TARGET_GRALLOC_HANDLE_HAS_UBWCP_FORMAT)
|
|
||||||
|
|
||||||
# Set default values
|
# Set default values
|
||||||
BOOTLOADER_MESSAGE_OFFSET ?= 0
|
BOOTLOADER_MESSAGE_OFFSET ?= 0
|
||||||
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
|
||||||
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false
|
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false
|
||||||
TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE ?= false
|
|
||||||
TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE ?= false
|
|
||||||
TARGET_GRALLOC_HANDLE_HAS_UBWCP_FORMAT ?= false
|
|
||||||
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED ?= 1
|
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED ?= 1
|
||||||
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED ?= 0
|
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED ?= 0
|
||||||
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS ?= true
|
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS ?= true
|
||||||
|
Reference in New Issue
Block a user