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 samples
      • 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
    • Subsystems
    • Drivers
    • Services
    • Libraries
    • Third-party
    • Application SDK
  • Hardware
    • Boards
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

pbl samples

Build the samples under samples/ for a board and, where the board runs on the host, run each one and check what it prints against its sample.yml. Samples are built only for the other boards.

pbl samples
pbl samples samples/kernel
pbl samples --board native_emery samples/kernel/work
pbl samples --list

Each sample is built in a directory of its own, build-samples/<board>/<sample>/, or under the directory given with --build-dir. The output of a build is only shown when it fails, and the console of a sample when a line it should print does not come; --verbose shows it for every sample.

Samples lists the samples and covers writing one.

Options

pbl samples [-h] [-b DIR] [--dry-run] [--lab FILE] [--watch NAME]
            [--wait [SECONDS]] [--board BOARD] [-l] [--build-only] [-v]
            [SAMPLE ...]
SAMPLE

Sample, or directory of samples, e.g. samples/kernel (default: all of samples/)

--board BOARD

Board to build for (default: qemu_emery)

-l, --list

List the samples and exit

--build-only

Build the samples without running

-v, --verbose

Show the console of the samples that pass too

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