xpeng: Use vendor repo for copying touch firmware to recovery

Unfortunately, the method used by berlna is not compatible for VAB devices,
so let's swap to using vendor repo to copy the touchscreen firmware.

Change-Id: Idc93f41f4295511ee8b568a463881c92ca21584c
This commit is contained in:
Marc Bourgoin 2023-03-31 05:28:54 -06:00
parent 7a0063f49d
commit 8bc9f71519
2 changed files with 4 additions and 20 deletions

View file

@ -1,20 +0,0 @@
#
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel
recovery_uncompressed_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.cpio
RECOVERY_FIRMWARE_TARGETS := \
mp_novatek_ts-NT36675-21101302-6044-xpeng.bin \
novatek_ts-NT36675-21101302-6044-xpeng.bin
INSTALLED_RECOVERY_FIRMWARE_TARGETS := $(RECOVERY_FIRMWARE_TARGETS:%=$(TARGET_RECOVERY_ROOT_OUT)/vendor/firmware/%)
$(INSTALLED_RECOVERY_FIRMWARE_TARGETS): $(INSTALLED_KERNEL_TARGET)
echo -e ${CL_GRN}"Copying firmware to recovery"${CL_RST}
@mkdir -p $(dir $@)
cp $(@F:%=$(TARGET_OUT_VENDOR)/firmware/%) $(TARGET_RECOVERY_ROOT_OUT)/vendor/firmware/
$(recovery_uncompressed_ramdisk): $(INSTALLED_RECOVERY_FIRMWARE_TARGETS)

View file

@ -663,3 +663,7 @@ vendor/etc/thermal-engine.conf
vendor/firmware/NT36xxx_MP_Setting_Criteria_6044.csv vendor/firmware/NT36xxx_MP_Setting_Criteria_6044.csv
vendor/firmware/mp_novatek_ts-NT36675-21101302-6044-xpeng.bin vendor/firmware/mp_novatek_ts-NT36675-21101302-6044-xpeng.bin
vendor/firmware/novatek_ts-NT36675-21101302-6044-xpeng.bin vendor/firmware/novatek_ts-NT36675-21101302-6044-xpeng.bin
# Touchscreen firmware (for recovery)
vendor/firmware/mp_novatek_ts-NT36675-21101302-6044-xpeng.bin:recovery/root/vendor/firmware/mp_novatek_ts-NT36675-21101302-6044-xpeng.bin
vendor/firmware/novatek_ts-NT36675-21101302-6044-xpeng.bin:recovery/root/vendor/firmware/novatek_ts-NT36675-21101302-6044-xpeng.bin