extract_utils: template: introduce kang mode
Change-Id: Idc196359a7cb6fd8de53ebdc23700322486a2a7d Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
This commit is contained in:
committed by
Michael Bestas
parent
528aac07e7
commit
e619bdd4ee
@@ -37,11 +37,14 @@ source "${HELPER}"
|
||||
# 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 @@ fi
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user