pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
    • Playground
  • Development
    • The pbl CLI
      • pbl configure
      • pbl build
      • pbl bundle
      • pbl menuconfig
      • pbl clean
      • pbl test
      • pbl itest
      • pbl run
      • pbl console
      • pbl debug
      • pbl debugserver
      • pbl emulator
      • pbl image_resources
      • pbl image_recovery
      • pbl erase
      • pbl lab
      • pbl power
      • Extending pbl
    • Build system
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Subsystems
    • Drivers
    • Services
    • Libraries
    • Third-party
    • Application SDK
  • Hardware
    • Boards
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

pbl configure

Configure a build directory for a board. pbl configure runs CMake into the build directory (build/ by default) and remembers the board, the variant and every Kconfig choice, so later commands need none of them again.

pbl configure --board qemu_emery

The board names, and the revisions of each, are listed in Boards. A board with revisions takes one after @, e.g. obelix@pvt. A board variant, another way to build the same board, comes after /: native_emery/wasm builds the native watch as WebAssembly. It applies boards/<board>/defconfig.<variant> and can bring its own toolchain (toolchain.<variant>.cmake).

Variants

--variant picks the image to build: normal, the main firmware, or prf, the recovery firmware, which applies fw/prj_prf.conf on top of the board defconfig.

pbl configure --board obelix@pvt --variant prf

Kconfig options

Anything pbl configure does not recognize is passed straight to CMake, so Kconfig symbols are set with -D:

pbl configure --board asterix -DCONFIG_RELEASE=y

A few that select the kind of image:

-DCONFIG_RELEASE=y:

A release image: strips debug aids, enables shipping defaults and reduces battery usage compared to a debug build.

-DCONFIG_MFG=y:

Manufacturing-only functionality in the PRF build.

Options for debugging and logging are listed with Debugging and Logging. To browse and change every symbol interactively, use pbl menuconfig.

Options

pbl configure [-h] [-b DIR] [--dry-run] [--lab FILE] [--watch NAME]
              [--wait [SECONDS]] --board BOARD [--variant {normal,prf}]
              [-G GENERATOR]
--board BOARD

Board to build for

--variant {normal,prf}

Firmware variant (default: normal)

-G, --generator GENERATOR

CMake generator (default: Ninja)

Generated from PebbleOS f3212a729. This page is maintained in the pebbleos repository: docs/pbl/configure.md.

Overview

  • Variants
  • Kconfig options
  • Options