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