-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·19 lines (13 loc) · 888 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
PWD=$(pwd)
TIMESTAMP="${TIMESTAMP:-$(date -u +"%Y%m%d%H%M")}"
west build -s zmk/app -p -b nice_nano_v2 -- -DSHIELD="corne_peripheral_left" -DZMK_CONFIG="${PWD}/config"
cp build/zephyr/zmk.uf2 "./firmware/${TIMESTAMP}_left.uf2"
west build -s zmk/app -p -b nice_nano_v2 -- -DSHIELD="corne_peripheral_right" -DZMK_CONFIG="${PWD}/config"
cp build/zephyr/zmk.uf2 "./firmware/${TIMESTAMP}_right.uf2"
west build -s zmk/app -p -b seeeduino_xiao_ble -- -DSHIELD="corne_central_dongle" -DZMK_CONFIG="${PWD}/config"
cp build/zephyr/zmk.uf2 "./firmware/${TIMESTAMP}_dongle.uf2"
west build -s zmk/app -p -b nice_nano_v2 -- -DSHIELD="settings_reset" -DZMK_CONFIG="${PWD}/config"
cp build/zephyr/zmk.uf2 "./firmware/nn_reset.uf2"
west build -s zmk/app -p -b seeeduino_xiao_ble -- -DSHIELD="settings_reset" -DZMK_CONFIG="${PWD}/config"
cp build/zephyr/zmk.uf2 "./firmware/xia_reset.uf2"