Build Libreboot
Libreboot is built with its own build system, lbmk, on a Linux computer: install git, set a git identity (lbmk refuses to run without one), clone lbmk from Codeberg and check out the release tag, then let lbmk install the rest of its dependencies for your distribution. The checkout matters because lbmk's default master branch is Libreboot's development branch, not the current release. This page prepares the build system; build ROMs builds the image for your laptop. Commands are for Libreboot 26.11rev4 (21 November 2026).
Step 1: Install git and set a git identity
Step 1 installs git and gives it a name and email. lbmk uses git to download and patch coreboot, and git refuses to commit patches without a name and email. Any values work; they never leave your machine.
sudo apt install git python-is-python3
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
Step 2: Clone lbmk and check out the release
Step 2 downloads lbmk, the Libreboot build system, from Libreboot's Codeberg repository and checks out the tag of the 26.11rev4 release, so you build the released code rather than lbmk's development branch:
git clone https://codeberg.org/libreboot/lbmk.git
cd lbmk
git checkout 26.11rev4
git describe --tags
git describe --tags should print 26.11rev4. Git also reports a "detached HEAD", which is normal after checking out a tag. If you cloned lbmk earlier, run git fetch --tags inside it first so the tag is there, then check it out the same way.
Why check out a tag instead of building master?
lbmk's master branch is where Libreboot develops; each release series lives on a branch of its own, 26.11_branch for Libreboot 26.11, into which Libreboot merges master when changes are ready for the release. Every 26.11 revision from 26.11rev1 onwards was tagged on that branch only. As of 23 November 2026 a fresh clone of master describes itself as 26.11-30-g9763ad8d, 30 commits past 26.11, the last release tagged on it, and it is not 26.11rev4. The tag is exactly the released code, and its archives are named libreboot-26.11rev4_..., as the rest of this guide expects.
Step 3: Install the build dependencies
Step 3 has lbmk install the packages your distribution needs, from the package list it keeps for that distribution in config/dependencies/. On Debian:
sudo ./mk dependencies debian
On any other distribution, replace debian with the name of its list. As of Libreboot 26.11rev4 (21 November 2026), lbmk has these:
| Distribution | Name |
|---|---|
| Debian | debian |
| Ubuntu, any release | ubuntu |
| Linux Mint | mint |
| Fedora 38, 40, 41, 42 or 43 | fedora and the version, such as fedora43 |
| Arch Linux | arch |
| Gentoo | gentoo |
| Void Linux | void |
ls config/dependencies shows the lists in your copy of lbmk, so check there if yours is not in the table. It also shows a ubuntu2404 list; use ubuntu instead, on 24.04 too. As of 26.11rev4 the ubuntu2404 list leaves out three libraries flashprog needs (libftdi1-dev, libgpiod-dev and libjaylink-dev), and building flashprog then stops with The following features require libftdi1. The ubuntu and mint lists are links to the debian list, which has them.
On Debian, Ubuntu and Linux Mint, install one more package. The list includes gcc-arm-none-eabi, the ARM compiler for the Pico firmware, but as of 26.11rev4 it leaves out the C library that compiler recommends, and lbmk tells apt to skip recommended packages:
sudo apt install --no-install-recommends libnewlib-arm-none-eabi
If you ran ./mk dependencies for an older release on this computer, two cross compilers it installed conflict with the gcc-multilib package the list now includes. A ThinkPad build uses neither, so remove them and run ./mk dependencies again:
sudo apt remove gcc-arm-linux-gnueabi g++-mipsel-linux-gnu
Step 4: Use every CPU core
Step 4 makes the build use every CPU core: lbmk builds on one thread by default, and setting XBMK_THREADS to the number of cores your computer has makes the build several times faster:
export XBMK_THREADS=$(nproc)
nproc prints the number of available cores, so this uses all of them. The setting lasts until you close the terminal.
When you build a ROM from source, lbmk downloads the vendor files your laptop needs (such as the Intel ME image, which it then cuts down with me_cleaner) and inserts them during the build. Pre-built release images from libreboot.org ship without them, which is why those need an extra ./mk inject step that building from source does not.