Source Compilation

BUILDING CYRONIX OS
FROM SOURCE.

Real build pipeline commands discovered from the Cyronix OS repository. Compile userdebug and signed production release builds.

1. Build Requirements

  • OS: Ubuntu 22.04 LTS / 24.04 LTS (x86_64).
  • CPU: 8+ cores recommended (e.g. Ryzen or Intel Xeon).
  • RAM: 32 GB RAM minimum (or 16 GB with 32 GB swap).
  • Disk: 300 GB free SSD storage.

2. Environment Setup

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

3. Initializing the Repository

mkdir -p ~/cyronix && cd ~/cyronix
repo init -u https://github.com/LineageOS/android.git -b lineage-18.1
# Sync Cyronix manifest overrides
git clone https://github.com/cyronix-dev/manifest.git .repo/local_manifests
repo sync -c -j$(nproc) --force-sync --no-clone-bundle --no-tags

4. Executing the Build Pipeline

In the Cyronix repository, production builds are orchestrated with our automated scripts:

# 1. Initialize environment:
source build/envsetup.sh
breakfast oneplus3

# 2. Execute verified build script:
bash scripts/build.sh user

# 3. Stage the signed release package and compute SHA-256:
bash scripts/stage-release.sh