config: Move bootloader message offset to select()
Change-Id: Ic97af638005c299963d0aaa39e04227dcbca8751
This commit is contained in:
committed by
Bruno Martins
parent
2bd35f62c1
commit
2d041eca9e
@@ -110,24 +110,3 @@ gralloc_10_usage_bits {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
soong_config_module_type {
|
||||
name: "bootloader_message_offset",
|
||||
module_type: "cc_defaults",
|
||||
config_namespace: "lineageGlobalVars",
|
||||
value_variables: ["bootloader_message_offset"],
|
||||
properties: [
|
||||
"cflags",
|
||||
"export_cflags",
|
||||
],
|
||||
}
|
||||
|
||||
bootloader_message_offset {
|
||||
name: "bootloader_message_offset_defaults",
|
||||
soong_config_variables: {
|
||||
bootloader_message_offset: {
|
||||
cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"],
|
||||
export_cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@@ -29,20 +29,17 @@ $(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v))))
|
||||
SOONG_CONFIG_NAMESPACES += lineageGlobalVars
|
||||
SOONG_CONFIG_lineageGlobalVars += \
|
||||
additional_gralloc_10_usage_bits \
|
||||
bootloader_message_offset \
|
||||
camera_override_format_from_reserved
|
||||
|
||||
# Soong bool variables
|
||||
SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED)
|
||||
|
||||
# Set default values
|
||||
BOOTLOADER_MESSAGE_OFFSET ?= 0
|
||||
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
|
||||
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false
|
||||
|
||||
# Soong value variables
|
||||
SOONG_CONFIG_lineageGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS)
|
||||
SOONG_CONFIG_lineageGlobalVars_bootloader_message_offset := $(BOOTLOADER_MESSAGE_OFFSET)
|
||||
|
||||
# Lineage Health HAL
|
||||
ifneq ($(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH),)
|
||||
@@ -97,6 +94,11 @@ ifneq ($(TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB),)
|
||||
$(call soong_config_set,power_libperfmgr,mode_extension_lib,$(TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB))
|
||||
endif
|
||||
|
||||
# Recovery
|
||||
ifneq ($(BOOTLOADER_MESSAGE_OFFSET),)
|
||||
$(call soong_config_set,lineage_recovery,bootloader_message_offset,$(BOOTLOADER_MESSAGE_OFFSET))
|
||||
endif
|
||||
|
||||
# Surfaceflinger
|
||||
ifneq ($(TARGET_SURFACEFLINGER_UDFPS_LIB),)
|
||||
$(call soong_config_set,surfaceflinger,udfps_lib,$(TARGET_SURFACEFLINGER_UDFPS_LIB))
|
||||
|
Reference in New Issue
Block a user