Add build command

This commit is contained in:
Manassarn Manoonchai 2023-01-06 18:11:50 +00:00
parent fd65189393
commit 1fe89c4c61
3 changed files with 14 additions and 0 deletions

2
Makefile Normal file
View file

@ -0,0 +1,2 @@
build: build.sh
bash ./build.sh

View file

@ -11,3 +11,7 @@ Check out the website to learn more: https://zmk.dev/
You can also come join our [ZMK Discord Server](https://zmk.dev/community/discord/invite)
To review features, check out the [feature overview](https://zmk.dev/docs/). ZMK is under active development, and new features are listed with the [enhancement label](https://github.com/zmkfirmware/zmk/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) in GitHub. Please feel free to add 👍 to the issue description of any requests to upvote the feature.
## My build command
For Aurora Lily58 in https://github.com/narze/zmk-config, run `make` in Devcontainer

8
build.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
SIDES=(left right)
for side in ${SIDES[@]}
do
west build -b nice_nano_v2 -s /workspaces/zmk/app -d /workspaces/zmk-config/build/aurora_lily58_$side.build -- -DSHIELD="splitkb_aurora_lily58_$side nice_view_adapter nice_view" -DZMK_CONFIG="/workspaces/zmk-config/config"
cp /workspaces/zmk-config/build/aurora_lily58_$side.build/zephyr/zmk.uf2 /workspaces/zmk-config/build/aurora_lily58_$side.uf2
done