land: Update blobs extraction script

Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
This commit is contained in:
Darshan Manjrekar 2017-08-30 16:54:18 +08:00
parent 7684ff0806
commit 3608c79f7a

View file

@ -34,8 +34,8 @@ if [ ! -f "$HELPER" ]; then
fi
. "$HELPER"
# default to not sanitizing the vendor folder before extraction
clean_vendor=false
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
while [ "$1" != "" ]; do
case $1 in
@ -44,9 +44,9 @@ while [ "$1" != "" ]; do
;;
-s | --section ) shift
SECTION=$1
clean_vendor=false
CLEAN_VENDOR=false
;;
-c | --clean-vendor ) clean_vendor=true
-n | --no-cleanup ) CLEAN_VENDOR=false
;;
esac
shift
@ -57,7 +57,7 @@ if [ -z "$SRC" ]; then
fi
# Initialize the helper
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" false $clean_vendor
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" false "$CLEAN_VENDOR"
extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION"