From 2b2731c7c80543f69c4a6d427c1dd009431adb5c Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Mon, 10 Jun 2024 01:34:01 -0400 Subject: [PATCH] g12: Allow vendor and vendor_brand to diverge * For devkits which use vendor/amlogic. Change-Id: Iab593610ecad2a4eccaf753e4ce48fdae26c7ffa --- extract-files.sh | 10 +++++----- setup-makefiles.sh | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 8e42894..5adfb66 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -83,13 +83,13 @@ if [ -z "${ONLY_FIRMWARE}" ] && [ -z "${ONLY_TARGET}" ]; then extract "${MY_DIR}/proprietary-files-tee.txt" "${SRC}" "${KANG}" --section "${SECTION}" fi -if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" ]; then +if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-files.txt" ]; then # Reinitialize the helper for device - source "${MY_DIR}/../../${VENDOR}/${DEVICE}/extract-files.sh" + source "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/extract-files.sh" setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}" if [ -z "${ONLY_FIRMWARE}" ]; then - extract "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" + extract "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" fi if [ "${TARGET_SOC}" == "g12a" ] @@ -100,8 +100,8 @@ if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/propriet extract "${MY_DIR}/../../${VENDOR_COMMON}/${DEVICE_COMMON}/proprietary-files-sm1.txt" "${SRC}" "${KANG}" --section "${SECTION}" fi - if [ -f "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" ]; then - extract_firmware "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" "${SRC}" + if [ -f "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-firmware.txt" ]; then + extract_firmware "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-firmware.txt" "${SRC}" fi fi diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 1a9a52f..e0e7268 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -47,7 +47,7 @@ printf '%s\n' 'endif' >> "$PRODUCTMK" # Finish write_footers -if [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" ]; then +if [ -s "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-files.txt" ]; then # Reinitialize the helper for device setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false @@ -55,7 +55,7 @@ if [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" ]; then write_headers # The standard device blobs - write_makefiles "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" true + write_makefiles "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-files.txt" true if [ "${TARGET_SOC}" == "g12a" ] then @@ -65,8 +65,8 @@ if [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" ]; then write_makefiles "${MY_DIR}/../../${VENDOR_COMMON}/${DEVICE_COMMON}/proprietary-files-sm1.txt" true fi - if [ -f "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" ]; then - append_firmware_calls_to_makefiles "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" + if [ -f "${MY_DIR}/../../${VENDOR_BRNAHD}/${DEVICE}/proprietary-firmware.txt" ]; then + append_firmware_calls_to_makefiles "${MY_DIR}/../../${VENDOR_BRAND}/${DEVICE}/proprietary-firmware.txt" fi # Finish -- 2.20.1