Skip to content

Commit

Permalink
extract_utils: template: introduce kang mode
Browse files Browse the repository at this point in the history
Change-Id: Idc196359a7cb6fd8de53ebdc23700322486a2a7d
Signed-off-by: Vladimir Oltean <[email protected]>
  • Loading branch information
vladimiroltean authored and mikeNG committed Mar 3, 2019
1 parent d5d0fea commit bff959a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/templates/extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

0 comments on commit bff959a

Please sign in to comment.