This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
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.
- Loading branch information
Showing
7 changed files
with
185 additions
and
158 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
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,28 +1,43 @@ | ||
#! /bin/sh -ex | ||
#! /bin/sh | ||
|
||
# configure: | ||
ZBE_ID="rollow" | ||
ZBE_ZMK_VERSION="3.2" # what ZMK version to use | ||
ZBE_ENV="rgbj-ciz" # an informational tag about the ZMK build env | ||
ZBE_OUTPUT="${HOME}/Downloads/${ZBE_ID}" # where the artifacts end up | ||
# and either: | ||
#ZBE_BOARD_left=board_left | ||
#ZBE_BOARD_right=board_right | ||
# or: | ||
ZBE_BOARD=nice_nano_v2 | ||
ZBE_SHIELD=rollow | ||
ZBE_ENV="rgbj-ciz" # an informational tag about the ZMK build env | ||
|
||
# end configure | ||
|
||
ZBE_TIMESTAMP="$(date +%Y%m%d-%H%M%S)" | ||
ZBE_ZMK_CONFIG_DIR="$(realpath $(dirname $0)/..)" | ||
|
||
docker run --name "zmk-build-${ZBE_ID}" --rm -it -w /wd \ | ||
--mount type=bind,source="${ZBE_ZMK_CONFIG_DIR}",target=/zmk-config,readonly \ | ||
--mount type=bind,source="${ZBE_ZMK_CONFIG_DIR}/docker",target=/docker,readonly \ | ||
--mount type=volume,source="zbe-${ZBE_ID}-${ZBE_ZMK_VERSION}-${ZBE_ENV}",target=/wd \ | ||
--mount type=bind,source="${ZBE_ZMK_CONFIG_DIR}/config",target=/wd/config,readonly \ | ||
--mount type=bind,source="${ZBE_OUTPUT}",target=/output \ | ||
-e MAKEFILES=/docker/Makefile \ | ||
-e ZBE_BOARD_left="${ZBE_BOARD_left}" -e ZBE_BOARD_right="${ZBE_BOARD_right}" \ | ||
-e ZBE_BOARD="${ZBE_BOARD}" -e ZBE_SHIELD="${ZBE_SHIELD}" \ | ||
-e ZBE_SIDES="${ZBE_SIDES:-left}" \ | ||
zmkfirmware/zmk-dev-arm:"${ZBE_ZMK_VERSION}" "$@" | ||
for ZBE_ID in ${ZBE_IDS:-ciz}; do | ||
echo "${ZBE_ID}" | ||
ZBE_OUTPUT="${HOME}/Downloads/zbe/${ZBE_ID}" # where the artifacts end up | ||
case "${ZBE_ID}" in | ||
ciz) | ||
ZBE_BOARD_left=corneish_zen_v2_left | ||
ZBE_BOARD_right=corneish_zen_v2_right | ||
ZBE_BOARD= | ||
ZBE_SHIELD= | ||
;; | ||
rollow) | ||
ZBE_BOARD_left= | ||
ZBE_BOARD_right= | ||
ZBE_BOARD=nice_nano_v2 | ||
ZBE_SHIELD=rollow | ||
;; | ||
esac | ||
|
||
docker run --name "zmk-build-${ZBE_ID}" --rm -it -w /wd \ | ||
--mount type=bind,source="${ZBE_ZMK_CONFIG_DIR}",target=/zmk-config,readonly \ | ||
--mount type=bind,source="${ZBE_ZMK_CONFIG_DIR}/docker",target=/docker,readonly \ | ||
--mount type=volume,source="zbe-${ZBE_ID}",target=/wd \ | ||
--mount type=bind,source="${ZBE_ZMK_CONFIG_DIR}/config",target=/wd/config,readonly \ | ||
--mount type=bind,source="${ZBE_OUTPUT}",target=/output \ | ||
-e ZBE_TIMESTAMP="${ZBE_TIMESTAMP}" \ | ||
-e MAKEFILES=/docker/Makefile \ | ||
-e ZBE_BOARD_left="${ZBE_BOARD_left}" -e ZBE_BOARD_right="${ZBE_BOARD_right}" \ | ||
-e ZBE_BOARD="${ZBE_BOARD}" -e ZBE_SHIELD="${ZBE_SHIELD}" \ | ||
-e ZBE_SIDES="${ZBE_SIDES:-left}" \ | ||
zmkfirmware/zmk-dev-arm:"${ZBE_ZMK_VERSION}" "$@" | ||
done | ||
|
||
|
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
Oops, something went wrong.