Build PX4 on Linux

SkillDev tools

Lets your agent build PX4 drone firmware or a software simulator on Linux without flashing hardware.

Use Build PX4 on Linux in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Build PX4 on Linux and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Build PX4 on Linux skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Build PX4 on LinuxStart free
About this skill

Build PX4 firmware or SITL natively on a Linux host, in the current checkout, without flashing hardware.

What this skill tells your AI

The instructions your AI receives, as published by px4/px4-autopilot in .agents/skills/build-px4-linux/SKILL.md and read by ahel’s review.

Inputs

  • A make target, for example px4_fmu-v6x_default or px4_sitl. Ask for it if missing; validate it against boards/.

Build the current checkout as-is, worktree or not. Do not create a worktree or switch branches to build.

Prepare

  1. arm-none-eabi-gcc --version must succeed for NuttX targets. If it does not, the host needs Tools/setup/ubuntu.sh (Ubuntu) — tell the user rather than installing it, or build in the container: docker run --rm -w "$PWD" --user "$(id -u):$(id -g)" -v "$PWD:$PWD" px4io/px4-dev:v1.17.0 make <target>. Tools/docker_run.sh passes -it and fails without a TTY.
  2. The build initializes submodules itself; do not overwrite locally modified ones.

Build

set -o pipefail
make <target> 2>&1 | tail -n 40

Report failures with the output; never treat an existing artifact as evidence of success. After changing a defconfig or Kconfig option, or switching toolchains, rm -rf build/<target> first: a stale build dir recompiles nothing and links mixed objects.

Do not run a NuttX build concurrently with make tests or SITL in the same tree.

Report

The artifact is build/<target>/<target>.px4 (NuttX) or build/px4_sitl_default/bin/px4 (SITL). Report the ref, commit, dirty state, target, and artifact path. Building is not flashing; never upload without a separate request.

Signals

GitHub stars
13k
Forks
16k
Last commit
Oct 2026
Advanced
Item type
skill
Key
build-px4-linux
Source
github.com/px4/px4-autopilot