dodge: Generate fastchg configuration for 23821
The files are identical on stock except for the project number. Change-Id: I47e81fff8bba24c93cef35e6d50519b3feee5328
This commit is contained in:
committed by
Bruno Martins
parent
7bca4fd8f5
commit
7947fd9175
@@ -4,6 +4,10 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
from extract_utils.fixups_blob import (
|
||||
blob_fixup,
|
||||
blob_fixups_user_type,
|
||||
)
|
||||
from extract_utils.main import (
|
||||
ExtractUtils,
|
||||
ExtractUtilsModule,
|
||||
@@ -13,11 +17,18 @@ namespace_imports = [
|
||||
'vendor/oneplus/sm8750-common',
|
||||
]
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
(
|
||||
'odm/firmware/fastchg/23821/charging_hyper_mode_config.txt',
|
||||
'odm/firmware/fastchg/23821/single_charging_hyper_mode_config.txt',
|
||||
): blob_fixup().regex_replace(r"(PROJECT:=)23893", r"\g<1>23821"),
|
||||
} # fmt: skip
|
||||
|
||||
module = ExtractUtilsModule(
|
||||
'dodge',
|
||||
'oneplus',
|
||||
namespace_imports=namespace_imports,
|
||||
# blob_fixups=blob_fixups,
|
||||
blob_fixups=blob_fixups,
|
||||
# add_firmware_proprietary_file=True,
|
||||
)
|
||||
|
||||
|
||||
@@ -82,10 +82,10 @@ odm/etc/camera/settings_fdc_lite.txt
|
||||
odm/firmware/tof8801_firmware.bin
|
||||
|
||||
# Charger firmware
|
||||
#odm/firmware/fastchg/23821/charging_hyper_mode_config.txt
|
||||
#odm/firmware/fastchg/23821/single_charging_hyper_mode_config.txt
|
||||
odm/firmware/fastchg/23893/charging_hyper_mode_config.txt
|
||||
odm/firmware/fastchg/23893/charging_hyper_mode_config.txt:odm/firmware/fastchg/23821/charging_hyper_mode_config.txt
|
||||
odm/firmware/fastchg/23893/single_charging_hyper_mode_config.txt
|
||||
odm/firmware/fastchg/23893/single_charging_hyper_mode_config.txt:odm/firmware/fastchg/23821/single_charging_hyper_mode_config.txt
|
||||
odm/firmware/fastchg/batt_dchg_ctrl_config_table.txt
|
||||
odm/firmware/fastchg/batt_eis_config.txt
|
||||
odm/firmware/fastchg/batt_si_loss_config_table.txt
|
||||
|
||||
Reference in New Issue
Block a user