Buildroot

Analyze Buildroot-based embedded Linux projects with FOSSA through the FOSSA CLI's native Buildroot support.

4 min readUpdated Dec 4, 2026

Overview

Buildroot builds complete embedded Linux systems. The Buildroot source tree itself is the package catalog: every package is a package/<name>/<name>.mk makefile in that tree or in a BR2_EXTERNAL tree, and the project's .config selects which packages are built.

FOSSA supports Buildroot natively. Buildroot analysis is performed with the FOSSA CLI as part of a normal fossa analyze run, with no conversion scripts or fossa-deps file required.

Tool support

ToolQuick Import (app.fossa.com)CLI (fossa-cli)
BuildrootN/AMakefile and Buildroot .config

Analyzing with the CLI

Requirements

RequirementDetail
fossa-cliVersion 3.24.0 or greater.
BuildrootVersion 2020.02 or newer, which provides the show-info target.
Build environmentThe same environment that runs make for the project: a configured Buildroot tree and the host tools Buildroot checks for.

Analysis is dynamic only: it runs make in the project directory. The project does not need to have been built, only configured, because make show-info evaluates the package makefiles without compiling anything.

Running the analysis

Install the latest release of fossa-cli:

Shell
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash

Then run fossa analyze from your configured Buildroot project directory.

Analysis strategies

StrategyDirect DepsTransitive DepsEdgesContainer Scanning
show-info✅✅✅❌
  • ✅, Supported when relevant data is available
  • ❌, Not supported

Project discovery

A Buildroot project is a directory containing both:

  • a Makefile, and
  • a .config whose header comment is # Buildroot <release> Configuration.

This matches both in-tree builds (the Buildroot checkout itself) and out-of-tree builds (an O= directory, which holds a generated Makefile wrapper). Other Kconfig-style .config files, such as the kernel's, are ignored. Nothing below a discovered project directory is walked, since it holds the extracted sources and the built root filesystem of every package.

Analysis

FOSSA CLI runs make -s show-info in the project directory and reads the JSON it prints. Each entry describes one package: its type (target, host or rootfs), version, dependencies, whether it is virtual, and which virtual packages it provides.

The graph closely follows how Buildroot's own utils/generate-cyclonedx builds its SBOM. The one difference is that virtual packages are also resolved when provides is missing:

Package kindReportedNotes
Non-virtual targetYesCross-compiled and installed into the image.
Non-virtual hostOnly with --include-unused-depsBuild tooling for the build machine. See Target and host packages.
rootfsNoFilesystem image generators with no name or version.
Virtual (openssl, zlib, skeleton, toolchain)NoSelection points with no source of their own. Dependencies on them are rewired to their providers.
  • Every non-virtual target and host package becomes a dependency buildroot+<name>$<release>#<version>, for example buildroot+busybox$2025.02.18#1.37.0. <name> is the package as Buildroot names it (libopenssl, not the openssl virtual it provides) and <release> is the Buildroot release from the .config header.
  • A dependency on a virtual package is rewired to the packages that provide it, so libcurl -> openssl is reported as libcurl -> libopenssl. Providers are read from provides when present; otherwise they are the virtual package's own non-virtual dependencies of the same type. A virtual package with no provider, such as toolchain, is dropped along with its edges.
  • A package that no other package depends on is a direct dependency.
  • Packages with no version of their own (skeleton-init-sysv, initscripts, urandom-scripts, ...) are defined by the Buildroot tree itself, so their revision is just the Buildroot release from the .config header, with no #<version> part, for example buildroot+initscripts$2025.02.18.

Target and host packages

Only target packages, which are cross-compiled and installed into the image, are reported by default. host packages are built for the build machine and used only as build tooling (host-gcc-final, host-pkgconf, ...); the set of host packages also varies with the machine the build runs on. They are labeled as development dependencies and are included when fossa analyze is run with --include-unused-deps, in which case they appear below the target packages that need them.

Limitations

  • Package versions are taken from show-info as-is. Packages whose version is chosen in .config (the kernel, bootloaders, the toolchain) report that chosen version, which may be custom for a custom tarball or git checkout.
  • Packages built with <PKG>_OVERRIDE_SRCDIR or from a local site, such as in-house packages in a BR2_EXTERNAL tree, are reported like any other package. Nothing in show-info marks them as first-party.
© 2026 FOSSA, Inc.support@fossa.com