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
  • Pebble Firmware
    • Overview
    • Playground
    • Application SDK
  • Development
    • The pbl CLI
      • pbl configure
      • pbl build
      • pbl bundle
      • pbl menuconfig
      • pbl clean
      • pbl test
      • pbl itest
      • pbl samples
      • pbl sdk
      • 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
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Drivers
    • Subsystems
    • Libraries
    • Third-party
  • Hardware
    • Boards
    • Board Add-ons
    • 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_pebble/m33

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/wasm builds the native watch as WebAssembly. It applies boards/<board>/defconfig.<variant> and can bring its own toolchain (toolchain.<variant>.cmake).

A board with several cores, listed under cores: in boards/<board>/<board>.yml, is built for one of them at a time, named after / the same way: stm32h747i_disco/m7 and stm32h747i_disco/m4 are two builds, configured, built and flashed on their own. Such a board takes no bare name. A board variant then comes after the core, as <board>/<core>/<variant>: the full name is BOARD[@REVISION][/CORE][/VARIANT]. Each core lists its own variants, in place of the board’s variants:, a core being a name or a mapping with its name and variants:

cores:
  - m7
  - name: m4
    variants:
      - <variant>

The core and the variant pick their own board files, those of the core first, then the variant’s, then those of the core with the variant (<core>_<variant>), as Kconfig and Devicetree list.

Add-ons

--addon plugs an add-on, such as a display module, into a connector of the board, and can be repeated. They are listed in Board Add-ons:

pbl configure --board sf32lb57_dpi_hdk --addon <addon> samples/demos/logo

Applications

Without more arguments, the build is for the watch firmware, the application in pebble/. To build another application, such as a sample, give its directory (see Applications):

pbl configure --board qemu_pebble/m33 samples/hello_world

Variants

--variant picks the image to build: normal, the main firmware, or prf, the recovery firmware, which applies pebble/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, so with --variant=prf.

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}]
              [--addon ADDON] [-G GENERATOR]
              [APP]
APP

Application to build, a directory such as samples/hello_world (default: the firmware, pebble)

--board BOARD

Board to build for

--variant {normal,prf}

Firmware variant (default: normal)

--addon ADDON

Add-on plugged into the board, can be repeated

-G, --generator GENERATOR

CMake generator (default: Ninja)

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

Overview

  • Add-ons
  • Applications
  • Variants
  • Kconfig options
  • Options