2021-04-12 16:01:49 -05:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
docker run -it --rm \
|
2021-04-12 16:59:40 -05:00
|
|
|
-v (pwd)/.cache:/zorne \
|
|
|
|
-v (pwd)/config:/zorne/config:ro \
|
|
|
|
-v (pwd)/build:/build \
|
2021-11-08 23:20:01 -06:00
|
|
|
zmkfirmware/zmk-build-arm:2.5 sh -c 'cd /zorne
|
2021-04-12 16:24:12 -05:00
|
|
|
west init -l config
|
2021-04-12 16:01:49 -05:00
|
|
|
west update
|
|
|
|
west zephyr-export
|
2021-04-12 16:24:12 -05:00
|
|
|
echo "Building left"
|
2021-04-12 21:52:04 -05:00
|
|
|
west build --pristine -s zmk/app -b nice_nano -- -DSHIELD=corne_left -DZMK_CONFIG="/zorne/config"
|
|
|
|
cp /zorne/build/zephyr/zmk.uf2 /build/corne_left_nice_nano.uf2
|
2021-04-12 16:24:12 -05:00
|
|
|
echo "Building right"
|
2021-04-12 16:59:40 -05:00
|
|
|
west build --pristine -s zmk/app -b nice_nano -- -DSHIELD=corne_right -DZMK_CONFIG="/zorne/config"
|
2021-04-12 21:52:04 -05:00
|
|
|
cp /zorne/build/zephyr/zmk.uf2 /build/corne_right_nice_nano.uf2'
|