This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvendorsetup.sh
57 lines (57 loc) · 2.87 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
if [ -n "${CLEAN_DT_REPOS}" ]; then
if [ "$CLEAN_DT_REPOS" = "True" ]; then
echo "Cleaning old repos before cloning"
rm -rf vendor/realme
rm -rf kernel/realme
rm -rf packages/apps/prebuilt-apps
rm -rf device/mediatek/sepolicy_vndr
rm -rf device/oplus
rm -rf packages/apps/RealmeParts
rm -rf packages/apps/PocketMode
rm -rf hardware/lineage/compat
rm -rf hardware/mediatek
rm -rf hardware/oplus
unset CLEAN_DT_REPOS
fi
fi
echo start cloning repos
VT=vendor/realme/RMX3031/RMX3031-vendor.mk
if ! [ -a $VT ]; then git clone https://github.com/nishant6342/vendor_realme_RMX3031 -b RMUI4-OSS vendor/realme/RMX3031
fi
KT=kernel/realme/RMX3031/Makefile
if ! [ -a $KT ]; then git clone --depth=1 https://github.com/nishant6342/kernel_realme_RMX3031 -b T kernel/realme/RMX3031
fi
PA=packages/apps/prebuilt-apps/prebuilt-apps.mk
if ! [ -a $PA ]; then git clone --depth=1 https://gitlab.com/nishant6342/packages_apps_prebuilt-apps packages/apps/prebuilt-apps/
fi
MTK_SEPOLICY=device/mediatek/sepolicy_vndr/SEPolicy.mk
if ! [ -a $MTK_SEPOLICY ]; then git clone --depth=1 https://github.com/Project-Elixir/device_mediatek_sepolicy_vndr -b Tiramisu device/mediatek/sepolicy_vndr
fi
PARTS=packages/apps/RealmeParts/parts.mk
if ! [ -a $PARTS ]; then git clone --depth=1 https://github.com/nishant6342/packages_apps_RealmeParts -b Tiramisu packages/apps/RealmeParts
fi
POCKET=packages/apps/PocketMode/pocket_mode.mk
if ! [ -a $POCKET ]; then git clone --depth=1 https://github.com/nishant6342/packages_apps_PocketMode -b Tiramisu packages/apps/PocketMode
fi
FW=vendor/realme/RMX3031-firmware/Android.mk
if ! [ -a $FW ]; then git clone --depth=1 https://github.com/nishant6342/vendor_realme_RMX3031-firmware vendor/realme/RMX3031-firmware
fi
CAM=device/oplus/camera/camera.mk
if ! [ -a $CAM ]; then git clone --depth=1 https://gitlab.com/nishant6342/device_oplus_camera device/oplus/camera
fi
COMPACT=hardware/lineage/compat/Android.bp
if ! [ -a $COMPACT ]; then git clone --depth=1 https://github.com/LineageOS/android_hardware_lineage_compat -b lineage-20.0 hardware/lineage/compat
fi
MTK=hardware/mediatek/Android.bp
if ! [ -a $MTK ]; then git clone --depth=1 https://github.com/nishant6342/android_hardware_mediatek -b lineage-20 hardware/mediatek
fi
CLANG17=prebuilts/clang/host/linux-x86/clang-r487747/bin/clang
if ! [ -a $CLANG17 ]; then git clone --depth=1 https://gitlab.com/projectelixiros/android_prebuilts_clang_host_linux-x86_clang-r487747 -b Tiramisu prebuilts/clang/host/linux-x86/clang-r487747
fi
OPLUS=hardware/oplus/Android.mk
if ! [ -a $OPLUS ]; then git clone --depth=1 https://github.com/nishant6342/android_hardware_oplus hardware/oplus
fi
WLAN=hardware/mediatek/wlan/Android.mk
if ! [ -a $WLAN ]; then git clone --depth=1 https://github.com/nishant6342/android_hardware_mediatek_wlan hardware/mediatek/wlan
fi
echo end cloning