Skip to content

Commit

Permalink
make config better
Browse files Browse the repository at this point in the history
  • Loading branch information
zeljkobekcic committed Oct 13, 2024
1 parent 21e2aa5 commit b44eab6
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 127 deletions.
9 changes: 6 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
ZMK_APP_PATH="$HOME/Projects/Private/zmk/app"
ZMK_CONFIG_ROOT_PATH="$HOME/Projects/Private/temper-zmk-config"
ZMK_APP_PATH="$HOME/Projects/private/zmk/app"
ZMK_CONFIG_ROOT_PATH="$HOME/Projects/private/temper-zmk-config"
OUTPUT_DIRECTORY="$ZMK_CONFIG_ROOT_PATH/outputs/"

rm -rf "$OUTPUT_DIRECTORY"
mkdir -p "$OUTPUT_DIRECTORY"

(
cd "$ZMK_APP_PATH"
echo ">>> $ZMK_APP_PATH"
source ../.venv/bin/activate

# format to json lines then read ech json object per loop iterationn
yq -o=json -I=0 '.include[]' "$ZMK_CONFIG_ROOT_PATH/build.yaml" | while read -r line; do
board=$(echo "$line" | yq -p=json '.board')
shield=$(echo "$line" | yq -p=json '.shield')

west build -d "build/$shield-$board" -b "$board" --pristine -- -DZMK_CONFIG="$ZMK_CONFIG_ROOT_PATH/config" -DSHIELD="$shield" > "$OUTPUT_DIRECTORY/$shield-$board.log"
echo ">>> " west build -d "build/$shield-$board" -b "$board" --pristine -- -DZMK_CONFIG="$ZMK_CONFIG_ROOT_PATH/config" -DSHIELD="$shield" '>' "$OUTPUT_DIRECTORY/$shield-$board.log"
west build -d "build/$shield-$board" -b "$board" --pristine -- -DZMK_CONFIG="$ZMK_CONFIG_ROOT_PATH/config" -DSHIELD="$shield" #> "$OUTPUT_DIRECTORY/$shield-$board.log"

echo ">>>" cp "build/$shield-$board/zephyr/zmk.uf2" "$OUTPUT_DIRECTORY/$shield-$board.uf2"
cp "build/$shield-$board/zephyr/zmk.uf2" "$OUTPUT_DIRECTORY/$shield-$board.uf2"
done

Expand Down
1 change: 1 addition & 0 deletions config/boards/shields/temper-dongle/temper_dongle.conf
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
Loading

0 comments on commit b44eab6

Please sign in to comment.