aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjack <[email protected]>2022-12-27 17:35:15 -0700
committerjack <[email protected]>2022-12-27 17:35:15 -0700
commit86a6bbd42ba7dcb68efc398ac0f8d426364cef4a (patch)
tree90b190c6e7d630b89c4d43d989c0984a9e18ed96
parent5cfebb4b08c16e644179522b6cbc82954ac3abf3 (diff)
downloadzmk_build-86a6bbd42ba7dcb68efc398ac0f8d426364cef4a.tar.gz
zmk_build-86a6bbd42ba7dcb68efc398ac0f8d426364cef4a.zip
add settings reset
-rwxr-xr-xbuild.sh13
-rw-r--r--build.yaml4
2 files changed, 16 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b5969fe..fd680e0 100755
--- a/build.sh
+++ b/build.sh
@@ -28,7 +28,7 @@ fi
echo -e "\n"
PS3="choose keyboard to build: "
-options=("corne" "corne-ish zen" "revxlp" "quit")
+options=("corne" "corne-ish zen" "revxlp" "settings reset" "quit")
select opt in "${options[@]}"
do
case $opt in
@@ -80,6 +80,17 @@ do
rm revxlp/revxlp.keymap
break
;;
+ "settings reset")
+ echo "building settings reset firmware..."
+ test_uf2
+ (cd ${ZMK_DIR}/app
+ west build -p -b nice_nano -- -DSHIELD=settings_reset
+ cp ${ZMK_DIR}/app/build/zephyr/zmk.uf2 ~/settings_reset_v1.uf2
+ west build -p -b nice_nano_v2 -- -DSHIELD=settings_reset
+ cp ${ZMK_DIR}/app/build/zephyr/zmk.uf2 ~/settings_reset_v2.uf2
+ )
+ break
+ ;;
"quit")
break
;;
diff --git a/build.yaml b/build.yaml
index 34a6cff..e053b38 100644
--- a/build.yaml
+++ b/build.yaml
@@ -4,3 +4,7 @@ include:
shield: corne_left
- board: nice_nano_v2
shield: corne_right
+ - board: nice_nano
+ shield: settings_reset
+ - board: nice_nano_v2
+ shield: settings_reset