Skip to content

Commit

Permalink
chore: rename dongle mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zeljkobekcic committed Jul 13, 2024
1 parent c971818 commit cbd7b8a
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 24 deletions.
11 changes: 0 additions & 11 deletions boards/shields/temper/Kconfig.shield

This file was deleted.

7 changes: 3 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env zsh

ZMK_APP_PATH="$HOME/Projects/Private/zmk/app"
ZMK_CONFIG_PATH="$HOME/Projects/Private/temper-zmk-config/config"
ZMK_EXTRA_MODULES_PATH="$HOME/Projects/Private/temper-zmk-config"
ZMK_CONFIG_ROOT_PATH="$HOME/Projects/Private/temper-zmk-config"
OUTPUT_DIRECTORY="$HOME/Projects/Private/temper-zmk-config/outputs/"

rm -rf "$OUTPUT_DIRECTORY"
Expand All @@ -11,11 +10,11 @@ mkdir -p "$OUTPUT_DIRECTORY"
cd "$ZMK_APP_PATH"
source ../.venv/bin/activate

yq '.include | map(.board + " " + .shield)' "$ZMK_EXTRA_MODULES_PATH/build.yaml" | while read line; do
yq '.include | map(.board + " " + .shield)' "$ZMK_CONFIG_ROOT_PATH/build.yaml" | while read line; do
board=$(echo $line | awk '{ print $2 }')
shield=$(echo $line | awk '{ print $3 }')

west build -d "build/$shield-$board" -b $board --pristine -- -DZMK_CONFIG="$ZMK_CONFIG_PATH" -DSHIELD=$shield -DZMK_EXTRA_MODULES="$ZMK_EXTRA_MODULES_PATH"
west build -d "build/$shield-$board" -b $board --pristine -- -DZMK_CONFIG="$ZMK_CONFIG_ROOT_PATH/config" -DSHIELD=$shield
cp "build/$shield-$board/zephyr/zmk.uf2" "$OUTPUT_DIRECTORY/$shield-$board.uf2"
done

Expand Down
8 changes: 5 additions & 3 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
---
include:
- board: nice_nano_v2
shield: temper_left
shield: temper_dongle_left
- board: nice_nano_v2
shield: temper_right
shield: temper_dongle_right
- board: nice_nano_v2
shield: temper_dongle
shield: temper_dongle_dongle
- board: nice_nano_v2
shield: settings_reset

File renamed without changes.
11 changes: 11 additions & 0 deletions config/boards/shields/temper-dongle/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT

config SHIELD_TEMPER_LEFT
def_bool $(shields_list_contains,temper_dongle_left)

config SHIELD_TEMPER_RIGHT
def_bool $(shields_list_contains,temper_dongle_right)

config SHIELD_TEMPER_DONGLE
def_bool $(shields_list_contains,temper_dongle_dongle)
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ requires: [pro_micro]
features:
- keys
siblings:
- temper_left
- temper_right
- temper_dongle
- temper_dongle_left
- temper_dongle_right
- temper_dongle_dongle
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions zephyr/module.yml

This file was deleted.

0 comments on commit cbd7b8a

Please sign in to comment.