extract_utils: template: introduce kang mode
Change-Id: Idc196359a7cb6fd8de53ebdc23700322486a2a7d
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
diff --git a/build/templates/extract-files.sh b/build/templates/extract-files.sh
index 9168e06..fede670 100755
--- a/build/templates/extract-files.sh
+++ b/build/templates/extract-files.sh
@@ -37,11 +37,14 @@
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
SECTION=
+KANG=
while [ "$1" != "" ]; do
case "$1" in
-n | --no-cleanup ) CLEAN_VENDOR=false
;;
+ -k | --kang) KANG="--kang"
+ ;;
-s | --section ) shift
SECTION="$1"
CLEAN_VENDOR=false
@@ -59,6 +62,6 @@
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" false "${CLEAN_VENDOR}"
-extract "${MY_DIR}/proprietary-files.txt" "${SRC}" --section "${SECTION}"
+extract "${MY_DIR}/proprietary-files.txt" "${SRC}" ${KANG} --section "${SECTION}"
"${MY_DIR}/setup-makefiles.sh"