2021-11-22 14:44:07 -06:00
|
|
|
#!/usr/bin/env bash
|
2021-11-08 23:20:01 -06:00
|
|
|
|
2021-11-22 14:44:07 -06:00
|
|
|
ZMK_DOCKER_IMAGE="${ZMK_DOCKER_IMAGE:-zmkfirmware/zmk-build-arm:2.5}"
|
2021-11-08 23:20:01 -06:00
|
|
|
|
|
|
|
docker run -it --rm \
|
|
|
|
-v (pwd)/.cache:/zofle \
|
|
|
|
-v (pwd)/config:/zofle/config:ro \
|
|
|
|
-v (pwd)/build:/build \
|
2021-11-22 14:44:07 -06:00
|
|
|
"$ZMK_DOCKER_IMAGE" sh -c 'cd /zofle
|
2021-11-08 23:20:01 -06:00
|
|
|
west init -l config
|
|
|
|
west update
|
|
|
|
west zephyr-export
|
|
|
|
echo "Building left"
|
|
|
|
west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=sofle_left -DZMK_CONFIG="/zofle/config"
|
|
|
|
cp /zofle/build/zephyr/zmk.uf2 /build/sofle_left_nice_nano.uf2
|
|
|
|
echo "Building right"
|
|
|
|
west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=sofle_right -DZMK_CONFIG="/zofle/config"
|
|
|
|
cp /zofle/build/zephyr/zmk.uf2 /build/sofle_right_nice_nano.uf2'
|