zmk: refine build and setup script
This commit is contained in:
parent
de484e0f1e
commit
ae6070df25
2 changed files with 5 additions and 0 deletions
|
|
@ -1,8 +1,11 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
rm -rf left.uf2 right.uf2
|
||||
|
||||
if [ "$1" == "--cached" ]; then
|
||||
devcontainer exec --workspace-folder ./zmk /bin/bash phiboard-build-cached.sh
|
||||
else
|
||||
devcontainer up --workspace-folder ./zmk
|
||||
devcontainer exec --workspace-folder ./zmk /bin/bash phiboard-build.sh
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ echo doing a clean build...
|
|||
cd app/
|
||||
west build -p -d build/left -b seeeduino_xiao_ble -- -DSHIELD=phiboard_left -DZMK_CONFIG="/workspaces/zmk-config"
|
||||
west build -p -d build/right -b seeeduino_xiao_ble -- -DSHIELD=phiboard_right -DZMK_CONFIG="/workspaces/zmk-config"
|
||||
echo == clean build completed ==
|
||||
echo future builds can be done with the --cached option
|
||||
)
|
||||
" > zmk/phiboard-build.sh
|
||||
chmod +x zmk/phiboard-build.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue