Skip to content

Commit

Permalink
soong: Unset custom charging path var if it is not defined
Browse files Browse the repository at this point in the history
Change-Id: I9de31c8aff5b17932f0de23026aebf95166c5163
  • Loading branch information
hellobbn authored and mikeNG committed Jan 13, 2025
1 parent 142b5f9 commit 3b646b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/BoardConfigSoong.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ SOONG_CONFIG_lineageGlobalVars += \
gralloc_handle_has_custom_content_md_reserved_size \
gralloc_handle_has_reserved_size \
gralloc_handle_has_ubwcp_format \
target_health_charging_control_charging_path \
target_health_charging_control_charging_enabled \
target_health_charging_control_charging_disabled \
target_health_charging_control_deadline_path \
Expand All @@ -52,6 +51,11 @@ SOONG_CONFIG_lineageGlobalVars += \
target_trust_usb_control_disable \
uses_egl_display_array

ifneq ($(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH),)
SOONG_CONFIG_lineageGlobalVars += \
target_health_charging_control_charging_path
endif

SOONG_CONFIG_NAMESPACES += lineageNvidiaVars
SOONG_CONFIG_lineageNvidiaVars += \
uses_nvidia_enhancements
Expand Down Expand Up @@ -107,7 +111,9 @@ TARGET_TRUST_USB_CONTROL_DISABLE ?= 0
# 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)
ifneq ($(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH),)
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_charging_path := $(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH)
endif
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_charging_enabled := $(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED)
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_charging_disabled := $(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED)
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_deadline_path := $(TARGET_HEALTH_CHARGING_CONTROL_DEADLINE_PATH)
Expand Down

0 comments on commit 3b646b3

Please sign in to comment.