From 4794929ab7d6d76820cb0151146af40a024faf87 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 6 Mar 2023 13:35:47 +0100 Subject: [PATCH] sm7325-common: Sync extractors with templates This applies the following tools/extract-utils changes: * Allow overriding VENDOR with VENDOR_COMMON Change-Id: Ib78643a3e6a648e21362b6a1fdc3581d41954700 --- extract-files.sh | 8 ++++---- setup-makefiles.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 426e5a8..6f3d8ab 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -74,17 +74,17 @@ function blob_fixup() { if [ -z "${ONLY_TARGET}" ]; then # Initialize the helper for common device - setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}" + setup_vendor "${DEVICE_COMMON}" "${VENDOR_COMMON:-$VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}" extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" fi -if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then +if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" ]; then # Reinitialize the helper for device - source "${MY_DIR}/../${DEVICE}/extract-files.sh" + source "${MY_DIR}/../../${VENDOR}/${DEVICE}/extract-files.sh" setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}" - extract "${MY_DIR}/../${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" + extract "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" fi "${MY_DIR}/setup-makefiles.sh" diff --git a/setup-makefiles.sh b/setup-makefiles.sh index e16eb20..77ef1fa 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -22,7 +22,7 @@ fi source "${HELPER}" # Initialize the helper for common -setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true +setup_vendor "${DEVICE_COMMON}" "${VENDOR_COMMON:-$VENDOR}" "${ANDROID_ROOT}" true # Warning headers and guards write_headers "berlin berlna dubai xpeng" @@ -33,7 +33,7 @@ write_makefiles "${MY_DIR}/proprietary-files.txt" true # Finish write_footers -if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then +if [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" ]; then # Reinitialize the helper for device setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false @@ -41,7 +41,7 @@ if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then write_headers # The standard device blobs - write_makefiles "${MY_DIR}/../${DEVICE}/proprietary-files.txt" true + write_makefiles "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" true # Finish write_footers