Skip to content

Building

spycat88 edited this page Nov 17, 2026 · 1 revision

Building

Requirements

  • git
  • Docker. The build runs in an amd64 container (ghcr.io/tianocore/containers/fedora-40-dev), so on Apple Silicon use Docker Desktop or OrbStack.

Building the images

git clone https://github.com/OpenHandheldCollective/OpenABL
cd OpenABL
./build.sh sm8550

Give one or more chipsets, or all:

./build.sh sm8250 sm8550
./build.sh all

Chipsets: sdm845 sm4450 sm6115 sm6450 sm7675 sm8250 sm8475 sm8550 sm8650 sm8750.

Option What it does
--no-standard-boot Leaves out standard boot; Linux then boots only from \EFI\BOOT\BOOTAA64.EFI.
--clean Builds each chipset from scratch.

Output

File What it is
build/out/abl_signed-<CHIPSET>.elf The image to flash
build/out/abl_signed-<CHIPSET>.elf.sha256 Its checksum
build/out/openabl-recovery-flashable-<chipset>.zip Recovery-flashable zip with the addon.d script (see Installation)
build/abl-build.log The full build log

The first build downloads Qualcomm's ABL source (tianocore edk2 from CodeLinaro, tag KERNEL.PLATFORM.3.0.r23-02400-kernel.0), applies Abl/openabl.patch, adds the files under Abl/QcomModulePkg, and downloads microui and qtestsign, all into build/. The first build of a chipset takes about ten minutes; later builds only recompile what changed.

Under emulation the edk2 build tool sometimes hangs. build.sh stops the container after ten minutes without output and retries once.

Version

The version, MAJOR.MINOR, is in the VERSION file. The menu, fastboot's version-bootloader and Linux's ESRT all report it.

Building only the menu program

To build build/menu/openabl-menu.efi with your own clang and lld-link, fetch the sources and run make:

Scripts/fetch.sh
make FEATURES=standard-boot,card-logo

Font generation needs fontTools (pip install fonttools).

Feature What it adds
standard-boot UEFI boot manager, BLS entries, UKIs, extlinux.conf
card-logo Custom boot logo from a \logo folder
sysfont Scaled system font fallback (needed on SM8750)
sdcc-sm4450, sdcc-sm6450, sdcc-sm7675 SD card fix for that chipset's XBL
loader-quirks XBL workarounds needed by OS loaders (SDM845, SM6115)
park-display Display on before the boot, off at ExitBootServices when no devicetree was seen (SM8650, SM8750)

The ABL image is 512 KiB and the abl partition 1 MiB, so the program is kept small.

The simulator

make sim builds a host program that renders the menu's screens to PNG, which is how the screenshots in the README are made. It needs a host C compiler and zlib.

make sim
build/sim/openabl-menu-sim --out shots --lang Ja
Option
--out DIR Where to write the PNGs (each panel and rotation gets *-view.png and *-scanout.png)
--filter TEXT Render only screens whose name contains TEXT
--lang SYMBOL Language: En, Es, Fr, Ru, Uk, Ja, ZhHans, Ko
--check Instead of rendering, run key-press sessions and compare each frame with a full redraw (mismatches are written to --out)

Releases (GitHub Actions)

  • Build (.github/workflows/build.yml) builds every chipset when a v* tag is pushed and uploads to that tag's release: the images, their .sha256 files, openabl-<TAG>.tar.gz (a folder per chipset) and openabl-<TAG>-source.tar.xz (this repository plus every fetched source, which ./build.sh builds without fetching again). It can also be run by hand to build a tag.
  • Package makes the openabl-<TAG>.tar.gz archive for an existing release.
  • CI keeps the fetched sources in the sources pre-release, and fetches them again only when a pin in Scripts/fetch.sh changes.

To make a release: bump VERSION, commit, then tag and push:

git tag v1.2
git push origin v1.2

Repository layout

Folder Contents
Abl/ The patch to Qualcomm's ABL and the files it adds
Base/, Rt/ Basic types, text, printing, the freestanding runtime
Core/ Parsers and logic: GPT, FAT32, BLS, extlinux, devicetree, settings, BMP
Efi/ UEFI side: display, files, hand-over, quirks, device models, uninstall
Boot/ Boot manager, boot entries, Linux boot
Gfx/, View/, Ui/, Menu/ Drawing, layout, screens and the menu
Ui/Lang/ Translations
Sim/ The host simulator
Linux/ Kernel patch for QSEECOM
RecoveryFlashable/ Template for the recovery-flashable zip
Scripts/ Fetching, ABL build, fonts, packaging

Clone this wiki locally