forked from Exynos-nibba/GitPod-ROM-buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildbot.sh
42 lines (34 loc) · 1.53 KB
/
buildbot.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
# Rom building script for CircleCI
# coded by bruh™ aka Live0verfl0w
MANIFEST_LINK=https://github.com/Project-Awaken/android_manifest.git
BRANCH=11
ROM_NAME=awaken
DEVICE_CODENAME=vince
GITHUB_USER=rk134
GITHUB_EMAIL=rahul.kantrapally@gmail.com
WORK_DIR=$(pwd)/${ROM_NAME}
JOBS=8
# Set up git!
git config --global user.name ${GITHUB_USER}
git config --global user.email ${GITHUB_EMAIL}
# make directories
mkdir ${WORK_DIR} && cd ${WORK_DIR}
# set up rom repo
repo init --depth=1 -u ${MANIFEST_LINK} -b ${BRANCH}
repo sync --current-branch --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune -j${JOBS}
# clone device sources
rm -rf hardware/qcom-caf/msm8996/audio
rm -rf hardware/qcom-caf/msm8996/display
rm -rf hardware/qcom-caf/msm8996/media
git clone -b awaken https://github.com/rxhulkxnt44/device_xiaomi_vince.git device/xiaomi/vince
git clone -b arrow-11.0 https://github.com/rxhulkxnt44/vendor_xiaomi_vince.git vendor/xiaomi/vince
git clone -b darky https://github.com/Blacksuan19/kernel_dark_ages_vince.git kernel/xiaomi/vince
cd hardware/qcom-caf/msm8996
git clone -b eleven https://github.com/PixelExperience/hardware_qcom-caf_msm8996-r_display.git hardware/qcom-caf/msm8996/display
git clone -b eleven https://github.com/PixelExperience/hardware_qcom-caf_msm8996-r_audio.git hardware/qcom-caf/msm8996/audio
git clone -b eleven https://github.com/PixelExperience/hardware_qcom-caf_msm8996-r_media.git hardware/qcom-caf/msm8996/media
cd ../../../
# Start building!
. build/envsetup.sh
lunch awaken_${DEVICE_CODENAME}-eng
make sepolicy