-
Notifications
You must be signed in to change notification settings - Fork 6
/
buildbot.sh
41 lines (29 loc) · 1.43 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
# Rom building script for CircleCI
# coded by bruh™ aka Live0verfl0w
MANIFEST_LINK=git://github.com/ProjectSakura/android.git
BRANCH=10
ROM_NAME=lineage
DEVICE_CODENAME=dreamlte
GITHUB_USER=Exynos-nigg
WORK_DIR=$(pwd)/${ROM_NAME}
JOBS=nproc
# 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
git clone -b lineage-17.1 https://github.com/Sakura-Devices/device_samsung_dreamlte.git device/samsung/dreamlte
git clone -b lineage-17.1 https://github.com/Sakura-Devices/device_samsung_universal8895-common.git device/samsung/universal8895-common
git clone -b pie https://github.com/Sakura-Devices/kernel_samsung_universal8895.git kernel/samsung/universal8895
git clone -b lineage-17.1 https://github.com/Sakura-Devices/vendor_samsung_dreamlte.git vendor/samsung/dreamlte
git clone -b lineage-17.1 https://github.com/Sakura-Devices/vendor_samsung_universal8895-common.git vendor/samsung/universal8895-common
git clone -b lineage-17.1 https://github.com/LineageOS/android_hardware_samsung.git hardware/samsung
# Start building!
. build/envsetup.sh
lunch lineage_${DEVICE_CODENAME}-userdebug
mka bacon -j${JOBS}