aboutsummaryrefslogtreecommitdiff
path: root/extract-files.sh
diff options
context:
space:
mode:
authorCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-02-24 17:37:01 +0100
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-02-24 17:38:56 +0100
commit8fd6361f5dbf11b3ce624bbe4759f13a83c5f9f4 (patch)
tree35cea1dfbb586d5d1cbcac72f5401904b2b5eddd /extract-files.sh
parent72b3b7e9649cc49f3849d9c9f5516d739b453f65 (diff)
msm8996-common: Clean up extract-files.sh
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-x[-rw-r--r--]extract-files.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/extract-files.sh b/extract-files.sh
index c5e540e..78747c0 100644..100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -18,12 +18,6 @@
set -e
-# Required!
-export DEVICE=z2_plus
-export VENDOR=zuk
-
-export DEVICE_BRINGUP_YEAR=2016
-
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
@@ -42,14 +36,13 @@ CLEAN_VENDOR=true
while [ "$1" != "" ]; do
case $1 in
- -p | --path ) shift
- SRC=$1
+ -n | --no-cleanup ) CLEAN_VENDOR=false
;;
-s | --section ) shift
SECTION=$1
CLEAN_VENDOR=false
;;
- -n | --no-cleanup ) CLEAN_VENDOR=false
+ * ) SRC=$1
;;
esac
shift
@@ -60,7 +53,7 @@ if [ -z "$SRC" ]; then
fi
# Initialize the helper for common device
-setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR"
+setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR"
extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION"