-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate a few more steps required to build firmware locally
- Loading branch information
1 parent
51edcd9
commit ac83686
Showing
4 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/sh | ||
|
||
CFG="/home/deividas/github.com/deividaspetraitis/zmk-config/config" | ||
CFG="/home/deividas/github.com/deividaspetraitis/zmk-config" | ||
|
||
west build -p -d build/right -b nice_nano_v2 -- -DSHIELD=think_corne_right -DZMK_CONFIG="$CFG" | ||
west build -p -d build/left -b nice_nano_v2 -- -DSHIELD=think_corne_left -DZMK_CONFIG="$CFG" | ||
west build -p -d build/reset -b nice_nano_v2 -- -DSHIELD=settings_reset -DZMK_CONFIG="$CFG" | ||
west build -s "$CFG/zmk/app" -p -d "$CFG/build/right" -b nice_nano_v2 -- -DSHIELD=think_corne_right -DZMK_CONFIG="$CFG/config" | ||
west build -s "$CFG/zmk/app" -p -d "$CFG/build/left" -b nice_nano_v2 -- -DSHIELD=think_corne_left -DZMK_CONFIG="$CFG/config" | ||
west build -s "$CFG/zmk/app" -p -d "$CFG/build/reset" -b nice_nano_v2 -- -DSHIELD=settings_reset -DZMK_CONFIG="$CFG/config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,7 @@ let | |
ninja | ||
gperf | ||
python3 | ||
virtualenv | ||
ccache | ||
dtc | ||
gmp.dev | ||
|
@@ -153,7 +154,19 @@ pkgs.mkShell { | |
export PATH=$PATH:${zephyr-sdk}/arm-zephyr-eabi/bin | ||
unset CFLAGS | ||
unset LDFLAGS | ||
python3 -m venv ./venv/.venv | ||
source ./zephyr/zephyr-env.sh | ||
virtualenv ./.venv | ||
source ./.venv/bin/activate | ||
# clone zmk | ||
git clone [email protected]:infused-kim/zmk.git -b pr-testing/mouse_ps2_v2 ./zmk | ||
# setup | ||
# https://zmk.dev/docs/development/setup | ||
west init -l ./zmk/app/ | ||
cd ./zmk && west update && west zephyr-export && cd .. | ||
pip3 install -r ./zmk/zephyr/scripts/requirements.txt | ||
source ./zmk/zephyr/zephyr-env.sh | ||
''; | ||
} |