Skip to content

Commit f9b9615

Browse files
jplexerclaude
andcommitted
build: move non-build commands to own tool (pbl)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Joshua Jun <lets@throw.rocks>
1 parent 9ac0d91 commit f9b9615

9 files changed

Lines changed: 631 additions & 436 deletions

File tree

.agents/skills/working-with-qemu/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ PebbleOS can run under a custom QEMU version shipped with the PebbleOS SDK.
1010
## Configure & build
1111

1212
```sh
13-
./waf configure --board $BOARD
14-
./waf build
13+
./pbl configure --board $BOARD
14+
./pbl build
1515
```
1616

1717
where `$BOARD` is any of the `qemu_*` boards:
@@ -25,7 +25,7 @@ QEMU boards target a specific platform, e.g. `qemu_emery` targets the Emery plat
2525
## Launch
2626

2727
```sh
28-
./waf qemu
28+
./pbl qemu
2929
```
3030

3131
The launched QEMU exposes:
@@ -39,7 +39,7 @@ UART1 output is also captured to `build/uart1.log`.
3939
## Console
4040

4141
```sh
42-
./waf console
42+
./pbl console
4343
```
4444

4545
Requires QEMU to be running.
@@ -48,8 +48,8 @@ Uses the TCP serial port to connect to the QEMU console, and provides a prompt f
4848
## Screenshot
4949

5050
```sh
51-
./waf screenshot # defaults to build/screenshot.png
52-
./waf screenshot --screenshot-output /tmp/foo.png
51+
./pbl screenshot # defaults to build/screenshot.png
52+
./pbl screenshot --screenshot-output /tmp/foo.png
5353
```
5454

5555
Requires QEMU to be running.

AGENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ PebbleOS is the operating system running on Pebble smartwatches.
3535

3636
## Firmware development
3737

38-
- Configure: `./waf configure --board BOARD_NAME`
38+
- Configure: `./pbl configure --board BOARD_NAME`
3939

40-
- Board names can be obtained from `./waf --help`
40+
- Board names can be obtained from `./pbl --help`
4141
- `-DCONFIG_RELEASE=y` enables release mode
4242
- `--mfg` enables manufacturing mode
4343
- `--variant=normal|prf` selects build variant (default: normal)
4444

45-
- Build firmware: `./waf build`
46-
- Run tests: `./waf test`
45+
- Build firmware: `./pbl build`
46+
- Run tests: `./pbl test`
4747

4848
## Adding a new SDK function
4949

docs/development/building_fw.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Before attempting to flash, check the documentation for each {doc}`board <../boa
1313
You can flash the built firmware by running:
1414

1515
```shell
16-
./waf flash
16+
./pbl flash
1717
```
1818

1919
In some cases, you may have to specify the `--tty $SERIAL_ADAPTER` option where `$SERIAL_ADAPTER` is the path for your serial adapter, e.g. `/dev/ttyACM0`, `/dev/tty.usbmodem1102`, etc.
@@ -23,14 +23,14 @@ Some boards support direct resource programming by passing the `--resources` opt
2323
The alternative is to flash while the firmware is running via the serial port using:
2424

2525
```shell
26-
./waf image_resources --tty $SERIAL_ADAPTER
26+
./pbl image_resources --tty $SERIAL_ADAPTER
2727
```
2828

2929
When both firmware and resources are flashed, you should observe the watch booting into the main application.
3030
You can also see the logs by opening the console:
3131

3232
```shell
33-
./waf console --tty $SERIAL_ADAPTER
33+
./pbl console --tty $SERIAL_ADAPTER
3434
```
3535

3636
Try sending `help` to get a list of available console commands.

docs/development/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuration Options
22

3-
When configuring the build (`./waf configure ...`) there are several options you can enable or tune.
3+
When configuring the build (`./pbl configure ...`) there are several options you can enable or tune.
44
Below you will find a list of the most relevant ones.
55

66
## Choosing your target

docs/development/qemu.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ The QEMU binary ships with the [PebbleOS SDK](https://github.com/coredevices/Peb
1414
The steps here are similar that of real hardware:
1515

1616
```shell
17-
./waf configure --board=$BOARD
18-
./waf build
17+
./pbl configure --board=$BOARD
18+
./pbl build
1919
```
2020

2121
where `$BOARD` is one of the dedicated QEMU boards (`qemu_emery`,
@@ -26,27 +26,27 @@ where `$BOARD` is one of the dedicated QEMU boards (`qemu_emery`,
2626
You can launch QEMU with the built image using:
2727

2828
```shell
29-
./waf qemu
29+
./pbl qemu
3030
```
3131

3232
The flash image is rebuilt by default on every launch. To keep the existing flash image (e.g. to preserve stored apps), pass `--keep-flash-image`:
3333

3434
```shell
35-
./waf qemu --keep-flash-image
35+
./pbl qemu --keep-flash-image
3636
```
3737

3838
## Console
3939

4040
You can launch a console using:
4141

4242
```shell
43-
./waf console
43+
./pbl console
4444
```
4545

4646
## Debug
4747

4848
You can debug with GDB using:
4949

5050
```shell
51-
./waf debug
51+
./pbl debug
5252
```

0 commit comments

Comments
 (0)