Skip to content

SOSP-OS/android_manifest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,208 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SOSP Project

Install the build packages:

sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

Install the repo command:

mkdir -p ~/bin
mkdir -p ~/Sosp-OS
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

GIT config (nickname, e-mail):

git config --global user.email "mail@domain.com"
git config --global user.name "login"

To initialize your local repository use:

cd ~/Sosp-OS
repo init -u https://github.com/SOSP-OS/android_manifest.git -b sosp-14

Then to sync up:

repo sync --no-clone-bundle

Turn on caching to speed up build :

export USE_CCACHE=1
ccache -M 150G

where 50G corresponds to 50GB of cache. This needs to be run once. Anywhere from 25GB-100GB will result in very noticeably increased build speeds (for instance, a typical 1hr build time can be reduced to 20min). If you’re only building for one device, 25GB-50GB is fine. If you plan to build for several devices that do not share the same kernel source, aim for 75GB-100GB. This space will be permanently occupied on your drive, so take this into consideration.

You can also enable the optional ccache compression. While this may involve a slight performance slowdown, it increases the number of files that fit in the cache. To enable it, run:

ccache -o compression=true

Start the build :

source build/envsetup.sh
lunch sosp_devicecodename-userdebug
make -j8 otapackage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors