Before start to compiling PROJECT INFINITY for your own device, some requirements as explained bellow:
- 16GB RAM (Swap can be helpful)
- Quadcore Processor
- 150GB Free Disk Space
To get started with PROJECT INFINITY, you'll need to get familiar with Repo and Version Control with Git.
To initialize your local repository, use a command like this:
repo init -u https://github.com/ProjectInfinityOS/manifest.git -b 12
You can alternatively use this command to save some space and time :
repo init --depth=1 -u https://github.com/ProjectInfinityOS/manifest.git -b 12
Then to sync up:
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
You can just use repo sync
or above command, but this will save you from lot of terminal spam, data and time.
repo sync -c -q --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)
From root directory of project, perform following commands in terminal
$ . build/envsetup.sh
$ lunch infinity_<device_codename>-buildtype
$ make -jx