-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbliss-raven.sh
87 lines (66 loc) · 3.23 KB
/
bliss-raven.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env bash
cd
sudo apt update
sudo apt upgrade
echo "Installing build tools to compile the ROM"
sleep 5
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip squashfs-tools python-mako libssl-dev ninja-build lunzip syslinux syslinux-utils gettext genisoimage gettext bc xorriso xmlstarlet
echo "Installing build tools COMPLETED"
sleep 5
#sudo sed -i '/cdrom/d' /etc/apt/sources.list
mkdir bliss
echo "Created bliss directory"
sleep 5
sudo wget 'https://storage.googleapis.com/git-repo-downloads/repo' -P /usr/local/sbin/
sudo chmod +x /usr/local/sbin/repo
cd bliss
echo "CD into Home/bliss"
echo "Initiating manifest. You may need to select Y/N here or git config --global user.email and git config --global user.name and restart script"
#git config --global user.email
#git config --global user.name
sleep 5
repo init -u https://github.com/BlissRoms/platform_manifest.git -b arcadia
echo "The project will now sync all of the repositories needed to compile the ROM. Depending on your connection this could take a while! You can expect a 1 hour sync time on a connection of 100mb/s Download speed."
sleep 5
repo sync -c --force-sync --no-tags --no-clone-bundle -j$(nproc --all) --optimized-fetch --prune
echo "Repo syncing is complete"
sleep 5
rm -rf frameworks/base
rm -rf build/make
rm -rf build/soong
rm -rf hardware/google/pixel-sepolicy
rm -rf vendor/google
rm -rf vendor/gms
echo "Removed repos that need patches"
sleep 5
echo "Now cloning the appropriate repos for Raven"
sleep 5
git clone https://github.com/stevn4127/platform_frameworks_base -b arcadia frameworks/base
echo "Cloning patched FWB for FOD"
git clone https://github.com/stevn4127/platform_build_make -b arcadia build/make
echo "Cloning patched build/make"
git clone https://github.com/stevn4127/platform_vendor_bliss -b arcadia vendor/bliss
echo "Cloning patched vendor/bliss"
git clone https://github.com/stevn4127/platform_build_soong -b arcadia build/soong
echo "Cloning patched build/soong"
git clone https://github.com/stevn4127/device_google_raviole -b arcadia device/google/raviole
echo "Cloning device tree for Raven"
git clone https://github.com/stevn4127/android_device_google_gs101 -b arcadia device/google/gs101
echo "Cloning gs101"
git clone https://github.com/stevn4127/android_device_google_gs101-sepolicy -b arcadia device/google/gs101-sepolicy
echo "Cloning gs101-sepolicy"
git clone https://android.googlesource.com/device/google/raviole-kernel -b android-12.0.0_r32 device/google/raviole-kernel
echo "Cloning AOSP kernel"
git clone https://gitlab.com/stebomurkn420/vendor_google -b arcadia vendor/google
echo "Cloning proprietary vendor blobs"
git clone https://github.com/stevn4127/hardware_google_pixel-sepolicy -b arcadia hardware/google/pixel-sepolicy
#git clone https://gitlab.com/stebomurkn420/platform_vendor_gms -b arcadia vendor/gms
#echo "Cloning gapps"
echo "Now starting the build. Lets roll another joint!"
sleep 5
echo "Initializing build enviroment"
. build/envsetup.sh
sleep 5
echo "Starting the build with mka blissify"
lunch bliss_raven-userdebug
blissify raven |& tee /tmp/build.log