bm: copy config file only for supported devices

Bug: 329547607
Change-Id: Ib953a807bf66203eb76ef513aa34eb4ccddbbb39
Signed-off-by: samou <samou@google.com>
This commit is contained in:
samou 2024-03-14 06:20:43 +00:00
parent 21709594db
commit 3f60d5db22
2 changed files with 2 additions and 11 deletions

View file

@ -1,11 +0,0 @@
{
"MitigationMethod":[
{
"Name":"UNDEFINED",
"Module":"UNDEFINED",
"Trigger":["OILO1", "OILO2", "UVLO1", "UVLO2", "SMPL"],
"State":["START", "LIGHT", "MEDIUM", "HEAVY", "DISABLED"],
"Condition":"BASIC"
}
]
}

View file

@ -41,9 +41,11 @@ PRODUCT_COPY_FILES += \
$(TARGET_VENDOR_PERF_CONFIG_PATH)/powerhint-zuma.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-proto.json $(TARGET_VENDOR_PERF_CONFIG_PATH)/powerhint-zuma.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-proto.json
# Battery Mitigation Config # Battery Mitigation Config
ifneq (,$(filter $(TARGET_DEVICE),komodo caiman tokay))
ifeq (,$(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH)) ifeq (,$(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH))
TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH := device/google/caimito/battery_mitigation TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH := device/google/caimito/battery_mitigation
endif endif
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH)/bm_config_$(TARGET_DEVICE).json:$(TARGET_COPY_OUT_VENDOR)/etc/bm_config.json $(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH)/bm_config_$(TARGET_DEVICE).json:$(TARGET_COPY_OUT_VENDOR)/etc/bm_config.json
endif