summaryrefslogtreecommitdiff
path: root/extract-files.sh
diff options
context:
space:
mode:
authorIsaac Chen <isaacchen@isaacchen.cn>2018-08-05 10:45:35 +0200
committerIsaac Chen <isaacchen@isaacchen.cn>2018-12-02 11:02:30 +0800
commit7a59c64c449b614b40fd4619bc29808afddfcab6 (patch)
treeef0a16f7fbf00b544ad8e05dfe2164f99a6e17a5 /extract-files.sh
parent77e80990b207491c639b79307c9f0022790b9e04 (diff)
wayne-common: Convert into common tree
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-xextract-files.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/extract-files.sh b/extract-files.sh
index e4b602b..ba51122 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -17,7 +17,7 @@
set -e
-DEVICE=wayne
+DEVICE_COMMON=wayne-common
VENDOR=xiaomi
# Load extract_utils and do some sanity checks
@@ -55,9 +55,15 @@ if [ -z "$SRC" ]; then
SRC=adb
fi
-# Initialize the helper
-setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false $clean_vendor
+# Initialize the common helper
+setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true $clean_vendor
extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION"
+if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then
+ # Reinitialize the helper for device
+ setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR"
+ extract "$MY_DIR"/../$DEVICE/proprietary-files.txt "$SRC" "$SECTION"
+fi
+
"$MY_DIR"/setup-makefiles.sh