add revision info to mikoto.zmk.yml

This commit is contained in:
zhiayang 2024-03-10 22:27:54 -04:00
parent efa9134eaa
commit 0d1ea70f7e
No known key found for this signature in database
GPG key ID: 5E2F30AD6F08571F
4 changed files with 25 additions and 0 deletions

View file

@ -8,3 +8,8 @@ outputs:
- ble - ble
url: https://github.com/zhiayang/mikoto url: https://github.com/zhiayang/mikoto
exposes: [pro_micro] exposes: [pro_micro]
revisions:
- "5.20"
- "7.1"
- "7.3"
default_revision: "5.20"

20
app/build.sh Executable file
View file

@ -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

BIN
app/left.uf2 Normal file

Binary file not shown.

BIN
app/right.uf2 Normal file

Binary file not shown.