diff --git a/app/boards/arm/mikoto/mikoto.zmk.yml b/app/boards/arm/mikoto/mikoto.zmk.yml index 1b6f2d1b..2898e6bd 100644 --- a/app/boards/arm/mikoto/mikoto.zmk.yml +++ b/app/boards/arm/mikoto/mikoto.zmk.yml @@ -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" diff --git a/app/build.sh b/app/build.sh new file mode 100755 index 00000000..ff54270c --- /dev/null +++ b/app/build.sh @@ -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 + + diff --git a/app/left.uf2 b/app/left.uf2 new file mode 100644 index 00000000..3f405dd0 Binary files /dev/null and b/app/left.uf2 differ diff --git a/app/right.uf2 b/app/right.uf2 new file mode 100644 index 00000000..677a22c0 Binary files /dev/null and b/app/right.uf2 differ