aboutsummaryrefslogtreecommitdiff
path: root/extract-files.sh
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2019-10-12 14:43:38 +0100
committerDavide Garberi <dade.garberi@gmail.com>2021-10-19 15:09:38 +0200
commit30df991957870ec08fe9f1ffd3efa2064d92454c (patch)
treecc99751e01832a9f3b5c36006b2d4b33b251e41a /extract-files.sh
parent85bb20d98932d6d3d53980d49354941d2d0e236b (diff)
msm8996-common: Add ability to extract common proprietary files only
Change-Id: Id4303ba662f60cb794aac65ebde652b643ea2345
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-xextract-files.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/extract-files.sh b/extract-files.sh
index 71bab0a..ea3396b 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -34,11 +34,15 @@ source "${HELPER}"
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
+ONLY_COMMON=
SECTION=
KANG=
while [ "${#}" -gt 0 ]; do
case "${1}" in
+ -o | --only-common )
+ ONLY_COMMON=false
+ ;;
-n | --no-cleanup )
CLEAN_VENDOR=false
;;
@@ -146,7 +150,7 @@ setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VEND
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
"${KANG}" --section "${SECTION}"
-if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
+if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
# Reinitialize the helper for device
source "${MY_DIR}/../${DEVICE}/extract-files.sh"
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"