Skip to content

04. Building

I would prefer not to edited this page Apr 13, 2021 · 2 revisions

How to build LibreELEC-RR yourself


Build systems

You can run a VirtualBox Linux Mint 20.1 Mate VM or a Thinkpad X220 with Linux Mint 20.1 as well as build system. So this distribution should be suitable for you too. For further information see LibreELEC Wiki / Compile.


Build dependencies

This should be handled automatically by the build script.


Download package source code (optional)

This command starts the download of all the source code packages you'll need for the build process. You can skip this and the source code is downloaded right before each package is build.

For generic x86-64 Intel & AMD CPU use:

PROJECT=Generic ARCH=x86_64 tools/download-tool

For Raspberry Pi 4 use:

PROJECT=RPi DEVICE=RPi4 ARCH=arm tools/download-tool


Dashboard (optional)

This command starts a dashboard that gives you a brief overview which package is currently unpacked, build, installed etc.

For generic x86-64 Intel & AMD CPU use:

PROJECT=Generic ARCH=x86_64 tools/dashboard

For Raspberry Pi 4 use:

PROJECT=RPi DEVICE=RPi4 ARCH=arm tools/dashboard

Build commands Generic

For Generic builds use:

PROJECT=Generic ARCH=x86_64 BUILD_PERIODIC=RR BUILDER_NAME=Your_Name make image

Build commands Raspberry

For Raspberry Pi 4 use:

PROJECT=RPi DEVICE=RPi4 ARCH=arm BUILD_PERIODIC=RR BUILDER_NAME=Your_Name make image

Build commands Amlogic

For Amlogic AMLG12B use:

PROJECT=Amlogic DEVICE=AMLG12B ARCH=arm BUILD_PERIODIC=RR BUILDER_NAME=Your_Name image

For universal Amlogic AMLGX images use:

PROJECT=Amlogic DEVICE=AMLGX ARCH=arm BUILD_PERIODIC=RR BUILDER_NAME=Your_Name make image

Build commands Rockchip

For RK3399 use:

PROJECT=Rockchip DEVICE=RK3399 ARCH=arm BUILD_PERIODIC=RR BUILDER_NAME=Your_Name make image

Build commands single packages / addons

To build single packages use:

scripts/build "package"

In example for package linux:

PROJECT=Generic ARCH=x86_64 scripts/build linux

Clean up

In case the build process fails try this and build again:

scripts/clean "package"

i.e. this cleans the linux package:

PROJECT=Generic ARCH=x86_64 scripts/clean linux

If you want to start a clean build:

make clean

If you want to start a clean build without buildcache:

make distclean
Clone this wiki locally