Skip to content

TEST! Script and patches for building PHH-Treble based SparkOS GSI

Notifications You must be signed in to change notification settings

Soli666/VoltageOS-GSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Voltage

To get started with building VoltageOS GSI,

you'll need to get familiar with Git and Repo as well as How to build a GSI.

Create the directories

As a first step, you'll have to create and enter a folder with the appropriate name. To do that, run these commands:

   mkdir voltage
   cd voltage

To initialize your local repository, run this command:

    repo init -u https://github.com/VoltageOS/manifest.git -b 13

Clone the Manifest to add necessary dependencies for gsi:

git clone https://github.com/Soli666/treble_manifest.git .repo/local_manifests  -b 13

Afterwards, sync the source by running this command:

repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

After syncing, apply the patches:

Copy the patches folder to rom folder and in rom folder

   bash patches/apply-patches.sh .

Generating Rom Makefile

In rom folder,

   cd device/phh/treble
   bash generate.sh voltage

Turn on caching to speed up build

You can speed up subsequent builds by adding these lines to your ~/.bashrc OR ~/.zshrc file:

export USE_CCACHE=1
export CCACHE_COMPRESS=1
export CCACHE_MAXSIZE=50G # 50 GB

Compilation

In rom folder,

. build/envsetup.sh
ccache -M 100G -F 0
lunch treble_arm64_bvN-userdebug 
make systemimage -j$(nproc --all)

Compress

After compilation, If you want to compress the build. In rom folder,

     cd out/target/product/tdgsi_arm64_ab
     xz -z -k system.img 

Troubleshoot

If you face any conflicts while applying patches, apply the patch manually.

Credits

These people have helped this project in some way or another, so they should be the ones who receive all the credit:

About

TEST! Script and patches for building PHH-Treble based SparkOS GSI

Resources

Stars

Watchers

Forks

Packages

No packages published