From 78d2d0c2e2fa8211e76f8f90ff734e7abbfc3dc7 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Sat, 30 Jan 2021 20:05:30 +0530 Subject: [PATCH] miatoll: Switch to standalone extract utils --- extract-files.sh | 9 +++------ setup-makefiles.sh | 8 ++++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 3b1193c..2c87838 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -16,18 +16,15 @@ export DEVICE_BRINGUP_YEAR=2020 MY_DIR="${BASH_SOURCE%/*}" if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi -LINEAGE_ROOT="${MY_DIR}"/../../.. +ANDROID_ROOT="${MY_DIR}"/../../.. -HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" +HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" if [ ! -f "${HELPER}" ]; then echo "Unable to find helper script at ${HELPER}" exit 1 fi source "${HELPER}" -# Default to sanitizing the vendor folder before extraction -CLEAN_VENDOR=true - SECTION= KANG= @@ -55,7 +52,7 @@ if [ -z "${SRC}" ]; then fi # Initialize the helper for common device -setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}" +setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}" extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \ "${KANG}" --section "${SECTION}" diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 39b704d..ed09faf 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -17,9 +17,9 @@ INITIAL_COPYRIGHT_YEAR=2020 MY_DIR="${BASH_SOURCE%/*}" if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi -LINEAGE_ROOT="${MY_DIR}/../../.." +ANDROID_ROOT="${MY_DIR}/../../.." -HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" +HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" if [ ! -f "${HELPER}" ]; then echo "Unable to find helper script at ${HELPER}" exit 1 @@ -27,7 +27,7 @@ fi source "${HELPER}" # Initialize the helper for common -setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true +setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true # Copyright headers and guards write_headers "curtana" @@ -41,7 +41,7 @@ write_footers if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then # Reinitialize the helper for device INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR" - setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" false + setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false # Copyright headers and guards write_headers