Build Libreboot
Building Libreboot and the rom for your ThinkPad
Install Dependencies​
Before installing Libreboot, let's gather the necessary dependencies.
sudo apt install git python-is-python3
You will need to set user.name and user.email before proceeding further; otherwise, you won't be able to proceed. If you prefer, you can simply fill them with random values.
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Enable Multi-threaded Build Mode​
Libreboot’s build system uses a single thread by default, but you can change this to use multiple threads. For example, you can run:
export XBMK_THREADS=4
This command will make Libreboot's build system use 4 threads, speeding up the build process.
Build Libreboot​
Clone the Libreboot repository
git clone https://codeberg.org/libreboot/lbmk.git
Navigate to the libreboot directory
cd lbmk
Download the necessary dependencies. Depending on your distribution, choose the appropriate command:
sudo ./mk dependencies arch
sudo ./mk dependencies ubuntu
sudo ./mk dependencies debian
sudo ./mk dependencies fedora