sm6375-common: extract-files: allow extracting proprietary-files for recovery

* we'll be using this to extract touchscreen firmware for recovery

Change-Id: I64745ff5823adee79016eabb772265aae3c06f3c
This commit is contained in:
Ramii Ahmed
2022-09-30 23:38:55 +00:00
parent 7507289ebf
commit 62eb368550
2 changed files with 5 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
extract "${MY_DIR}/../${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files-recovery.txt" ]; then
extract "${MY_DIR}/../${DEVICE}/proprietary-files-recovery.txt" "${SRC}" "${KANG}" --section "${SECTION}"
fi
fi
"${MY_DIR}/setup-makefiles.sh"

View File

@@ -43,6 +43,8 @@ if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
# The standard device blobs
write_makefiles "${MY_DIR}/../${DEVICE}/proprietary-files.txt" true
echo "TARGET_RECOVERY_DEVICE_DIRS += vendor/$VENDOR/$DEVICE/proprietary" >> "$BOARDMK"
# Finish
write_footers
fi