-
Notifications
You must be signed in to change notification settings - Fork 1
/
sync.sh
30 lines (23 loc) · 916 Bytes
/
sync.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Make the Directory if it doesn't exist
mkdir -p $SYNC_PATH
# Change to the Source Directory
cd $SYNC_PATH
# Init Repo
repo init -u $MANIFEST -b $MANIFEST_BRANCH
# Sync the Sources
repo sync
# Clone Trees
git clone --depth=1 $DT_LINK $DT_PATH || { echo "ERROR: Failed to Clone the Device Trees!" && exit 1; }
git clone --depth=1 $VT_LINK $VT_PATH
git clone --depth=1 $KT_LINK $KT_PATH
# Custom
rm -rf hardware/xiaomi
rm -rf hardware/qcom-caf/wlan
rm -rf hardware/qcom-caf/bootctrl
rm -rf hardware/google/pixel/kernel_headers
git clone --depth=1 https://github.com/LineageOS/android_hardware_xiaomi.git -b lineage-20 hardware/xiaomi
git clone --depth=1 https://github.com/Jabiyeff-Project/android_hardware_qcom_wlan.git -b 13.0-spes hardware/qcom-caf/wlan
git clone --depth=1 https://github.com/ArrowOS/android_hardware_qcom_bootctrl.git -b arrow-13.0-caf hardware/qcom-caf/bootctrl
# Exit
exit 0