Andy CrossGate Yan ddeacb4806 Changes for April 2024
- Patch and build TrebleApp on the go, instead of maintaining a prebuilt
2024-04-21 19:48:43 +08:00
2024-04-21 19:48:43 +08:00
2024-04-21 19:48:43 +08:00
2023-03-23 11:49:53 +00:00

Building PHH-based LineageOS GSIs

To get started with building LineageOS GSI, you'll need to get familiar with Git and Repo, and set up your environment by referring to LineageOS Wiki (mainly "Install the build packages") and How to build a GSI.

First, open a new Terminal window, which defaults to your home directory. Create a new working directory for your LineageOS build and navigate to it:

mkdir lineage-19.x-build-gsi; cd lineage-19.x-build-gsi

Initialize your LineageOS workspace:

repo init -u https://github.com/LineageOS/android.git -b lineage-19.1 --git-lfs

Clone both this and the patches repos:

git clone https://github.com/AndyCGYan/lineage_build_unified lineage_build_unified -b lineage-19.1
git clone https://github.com/AndyCGYan/lineage_patches_unified lineage_patches_unified -b lineage-19.1

Finally, start the build script - for example, to build for all supported archs:

bash lineage_build_unified/buildbot_unified.sh treble A64VN A64VS A64GN 64VN 64VS 64GN

Be sure to update the cloned repos from time to time!


Note: VNDKLite and Secure targets are generated from built images instead of source-built - refer to sas-creator.


This script is also used to make device-specific and/or personal builds. To do so, understand the script, and try the device and personal keywords.

Description
Unified script for building GSI and device-specific LineageOS
Readme 806 KiB
Languages
Shell 100%