Skip to content

Commit

Permalink
add revision info to mikoto.zmk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiayang committed Mar 11, 2024
1 parent efa9134 commit 0d1ea70
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/boards/arm/mikoto/mikoto.zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ outputs:
- ble
url: https://github.com/zhiayang/mikoto
exposes: [pro_micro]
revisions:
- "5.20"
- "7.1"
- "7.3"
default_revision: "5.20"
20 changes: 20 additions & 0 deletions app/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

pristine=""
if [ $# -gt 0 ] && [ "$1" = "-p" -o "$1" = "--pristine" ]; then
pristine="--pristine"
fi

COMMON_ARGS=(
"-DZEPHYR_TOOLCHAIN_VARIANT=zephyr"
"-DZEPHYR_SDK_INSTALL_DIR=/opt/pacman/opt/zephyr-sdk"
"-DZMK_CONFIG=$(pwd)/../../zmk-config/config"
"-Wno-dev"
)

set -x

west build -d build/left -b mikoto_520 ${pristine} -- -DSHIELD=misaka_left "${COMMON_ARGS[@]}" && mv build/left/zephyr/zmk.uf2 ./left.uf2
west build -d build/right -b mikoto_520 ${pristine} -- -DSHIELD=misaka_right "${COMMON_ARGS[@]}" && mv build/right/zephyr/zmk.uf2 ./right.uf2


Binary file added app/left.uf2
Binary file not shown.
Binary file added app/right.uf2
Binary file not shown.

0 comments on commit 0d1ea70

Please sign in to comment.