forked from LineageOS/android_device_xiaomi_haydn
/
vendorsetup.sh
31 lines (23 loc) · 1.22 KB
/
vendorsetup.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
31
echo 'Starting to clone stuffs needed to build for Haydn'
# Device common
echo 'Cloning common device tree'
git clone https://github.com/Astridxx/android_device_xiaomi_sm8350-common -b Rising-13 device/xiaomi/sm8350-common
# Kernel
echo 'Cloning kernel tree'
git clone https://github.com/Astridxx/android_kernel_xiaomi_sm8350.git --recursive --depth=1 -b lineage-20 kernel/xiaomi/sm8350
# Vendor
echo 'Cloning vendor tree'
git clone https://github.com/Astridxx/proprietary_vendor_xiaomi_haydn -b lineage-20 vendor/xiaomi/haydn
# Vendor common
echo 'Cloning common vendor tree'
git clone https://github.com/Astridxx/proprietary_vendor_xiaomi_sm8350-common -b lineage-20 vendor/xiaomi/sm8350-common
# Xiaomi
echo 'Cloning hardware xiaomi'
rm -rf hardware/xiaomi && git clone --depth=1 https://github.com/LineageOS/android_hardware_xiaomi -b lineage-20 hardware/xiaomi
# Firmware
echo 'Cloning firmware'
git clone --depth=1 https://gitlab.com/Alucard_Storm/vendor_xiaomi_haydn-firmware -b thirteen vendor/xiaomi/haydn-firmware
# Camera
echo 'Cloning Leica camera'
git clone --depth=1 https://gitlab.com/Alucard_Storm/haydn-miuicamera -b thirteen-leica vendor/xiaomi/haydn-miuicamera
echo 'delete vendorsetup.sh from device tree once this is done'