universal7570: Update blob scripts

Change-Id: Iea7c8bfb551c8b89d182413e17496c6a18c8b78c
This commit is contained in:
Hendra Manudinata 2021-03-10 20:31:31 +07:00
parent 3cfa260346
commit 91f8150ef2
No known key found for this signature in database
GPG key ID: 8DB7A83A9B4EE2D6
2 changed files with 6 additions and 5 deletions

5
extract-files.sh Normal file → Executable file
View file

@ -26,7 +26,7 @@ if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
LINEAGE_ROOT="${MY_DIR}"/../../..
HELPER="${AOSP_ROOT}/vendor/lineage/build/tools/extract_utils.sh"
HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
@ -62,6 +62,7 @@ fi
# Initialize the helper
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}"
extract "$MY_DIR"/proprietary-files.txt "$SRC"
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
"${KANG}" --section "${SECTION}"
"${MY_DIR}/setup-makefiles.sh"

6
setup-makefiles.sh Normal file → Executable file
View file

@ -18,7 +18,7 @@
set -e
VENDOR=samsung
DEVICE=universal7570-common
DEVICE_COMMON=universal7570-common
export INITIAL_COPYRIGHT_YEAR=2017
@ -36,10 +36,10 @@ fi
source "${HELPER}"
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${AOSP_ROOT}"
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true
# Copyright headers and guards
write_headers "universal7570-common"
write_headers "j4lte"
# The standard blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true