Buildroot
Jump to navigation
Jump to search
This page describes the steps to build a toolchain and root file system for a specific processor configuration based on the latest release of Buildroot.
Getting Buildroot and other prerequisites
- Buildroot
- Download the latest release from http://buildroot.net/download.html or clone the development tree
git clone git://git.buildroot.net/buildroot
- Download the latest release from http://buildroot.net/download.html or clone the development tree
- Xtensa overlay file
- The overlay file includes patches for toolchain tools, such as compiler, assembler, and debugger, that are required to support a specific Xtensa processor configuration. Tensilica provides such an overlay as part of the processor download, however, it needs to be reformatted to match the specific format required by buildroot. For a script to convert the overlay file, and additional information, please go to Toolchain Overlay File. The current version of buildroot requires that the overlay file name has the format xtensa_<CORE_NAME>.tar, where CORE_NAME can be any user selected name.
Configuring and building Buildroot
The first step is to configure Buildroot make menuconfig
. Select Xtensa, and for a custom configuration, provide a core name and absolute path to the directory containing the overlay file. The overlay file name must be xtensa_<CORE_NAME>.tar, where core name can be any user selected name.
Target Architecture (Xtensa) Target Architecture Variant (Custom Xtensa processor configuration) (PROCESSOR_NAME) Custom Xtensa processor configuration name (ABSOLUTE_OVERLAY_PATH) Overlay directory for custom configuration
Finally, run make
to build the toolchain and root file system. For more information about Buildroot, please also read the documents provided by Buildroot under http://buildroot.net/docs.html.