diff --git a/README.md b/README.md index 3d6817c..e06abb6 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,11 @@ See the `boards` directory for a list of available boards. cmake -DPICO_BOARD=beepy -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 `djflix/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. diff --git a/dbuild.sh b/dbuild.sh new file mode 100755 index 0000000..8085172 --- /dev/null +++ b/dbuild.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +docker run --rm -it \ + -v $(pwd)/3rdparty/pico-sdk:/pico-sdk \ + -v $(pwd):/project \ + djflix/rpi-pico-builder:latest \ + bash -c 'mkdir -p build && cd build && cmake -DPICO_BOARD=bbq20kbd_breakout .. && make clean && make' + \ No newline at end of file