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
|
# Default to sanitizing the vendor folder before extraction
|
||||||
CLEAN_VENDOR=true
|
CLEAN_VENDOR=true
|
||||||
SECTION=
|
SECTION=
|
||||||
|
KANG=
|
||||||
|
|
||||||
while [ "$1" != "" ]; do
|
while [ "$1" != "" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-n | --no-cleanup ) CLEAN_VENDOR=false
|
-n | --no-cleanup ) CLEAN_VENDOR=false
|
||||||
;;
|
;;
|
||||||
|
-k | --kang) KANG="--kang"
|
||||||
|
;;
|
||||||
-s | --section ) shift
|
-s | --section ) shift
|
||||||
SECTION="$1"
|
SECTION="$1"
|
||||||
CLEAN_VENDOR=false
|
CLEAN_VENDOR=false
|
||||||
@@ -59,6 +62,6 @@ fi
|
|||||||
# Initialize the helper
|
# Initialize the helper
|
||||||
setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" false "${CLEAN_VENDOR}"
|
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"
|
"${MY_DIR}/setup-makefiles.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user