Skip to content

Commit

Permalink
Add simple docker build script
Browse files Browse the repository at this point in the history
  • Loading branch information
DJFliX committed Jul 3, 2022
1 parent c44f954 commit f311713
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ See the `boards` directory for a list of available boards.
cmake -DPICO_BOARD=bbq20kbd_breakout -DCMAKE_BUILD_TYPE=Debug ..
make

## Docker build

If you don't have the dependencies for building this project on your system you can also use a script that will run the build command using docker.
The `dbuild.sh` script will invoke the commands from the `Build` section using the `xingrz/rpi-pico-builder:latest` Docker image.

## Vendor USB Class

You can configure the software over USB in a similar way you would do it over I2C. You can access the same registers (like the backlight register) using the USB Vendor Class.
Expand Down
8 changes: 8 additions & 0 deletions dbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

docker run --rm -it \
-v $(pwd)/3rdparty/pico-sdk:/pico-sdk \
-v $(pwd):/project \
xingrz/rpi-pico-builder:latest \
bash -c 'mkdir -p build && cd build && cmake -DPICO_BOARD=bbq20kbd_breakout .. && make clean && make'

0 comments on commit f311713

Please sign in to comment.