> For the complete documentation index, see [llms.txt](https://wiki.libreelec.tv/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.libreelec.tv/development/build-commands/build-addons.md).

# Build Commands (Add-ons)

The build-system also builds a range of LibreELEC or Kodi binary add-ons. These follow the same basic build command syntax as an image build, e.g. to build `Tvheadend 4.2`

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon tvheadend42
```

To compile all `game.libretro` add-ons:

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon game.*
```

To compile all [https://github.com/LibreELEC/LibreELEC.tv/tree/master/packages/mediacenter/kodi-binary-addons](https://github.com/LibreELEC/documentation/tree/393dc8f1e82c82b95bad32bf23af1faf455762e6/development/build-commands/Kodi%20binary%20add-ons/README.md):

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon binary
```

To compile all [https://github.com/LibreELEC/LibreELEC.tv/tree/master/packages/addons](https://github.com/LibreELEC/documentation/tree/393dc8f1e82c82b95bad32bf23af1faf455762e6/development/build-commands/LibreELEC%20binary%20add-ons/README.md):

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon official
```

To compile all add-ons:

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon all
```

It is also possible to exclude specific add-ons:

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon all -game.* -official -pvr.hts
```

To log errors to the `$BUILD/logs/` directory:

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon all --write-logs=errors
```

To show help and list all add-on building functions:

```
PROJECT=Generic ARCH=x86_64 scripts/create_addon --help
```

## Note

In LibreELEC 10.x and newer ARM SoC devices (Allwinner, Amlogic, NXP, Qualcomm, Rockchip, Samsung) use the `ARMv7` or `ARMv8` project. This project uses a minimal distro configuration (disabling most features) to reduce the overall time spent on building add-on dependencies.

```
PROJECT=ARM ARCH=arm DEVICE=ARMv7 scripts/create_addon all
PROJECT=ARM ARCH=arm DEVICE=ARMv8 scripts/create_addon all
PROJECT=ARM ARCH=aarch64 DEVICE=ARMv8 scripts/create_addon all
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.libreelec.tv/development/build-commands/build-addons.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
