summaryrefslogtreecommitdiff
path: root/bin/build.sh
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2023-12-18 13:21:30 +0100
committerjakobst1n <jakob.stendahl@outlook.com>2023-12-18 13:21:30 +0100
commit3bcb4ee33260319f0721257476d7a317ffd60fa0 (patch)
tree23cb6edabfb17701dcb65e1c5cd5d010d56c0d75 /bin/build.sh
parent32070a37f5c89e6250a7a450ce01d577642c159c (diff)
downloadzmk-config-3bcb4ee33260319f0721257476d7a317ffd60fa0.tar.gz
zmk-config-3bcb4ee33260319f0721257476d7a317ffd60fa0.zip
Fix build script, small keymap changes
Diffstat (limited to 'bin/build.sh')
-rwxr-xr-xbin/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build.sh b/bin/build.sh
index 04a671c..330f0d3 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -157,14 +157,14 @@ CONFIG_DIR="$DOCKER_CONFIG_DIR/config"
compile_board () {
board=$(echo "$1" | jq -r '.board')
shield=$(echo "$1" | jq -r '.shield // ""')
- [[ -z $shield ]] && shield="" || shield="-DSHIELD=${shield}"
+ [[ -z $shield ]] && shield_opts="" || shield_opts="-DSHIELD=${shield}"
BUILD_DIR="${board}_${shield}_$SUFFIX"
LOGFILE="$LOG_DIR/zmk_build_$board_$shield.log"
[[ $MULTITHREAD = "true" ]] || echo -en "\n$(tput setaf 2)Building $1... $(tput sgr0)"
[[ $MULTITHREAD = "true" ]] && echo -e "$(tput setaf 2)Building $1... $(tput sgr0)"
$DOCKER_PREFIX west build -d "build/$BUILD_DIR" -b $board $WEST_OPTS \
- -- -DZMK_CONFIG="$CONFIG_DIR" $shield -Wno-dev > "$LOGFILE" 2>&1
+ -- -DZMK_CONFIG="$CONFIG_DIR" $shield_opts -Wno-dev > "$LOGFILE" 2>&1
if [[ $? -eq 0 ]]
then
[[ $MULTITHREAD = "true" ]] || echo "$(tput setaf 2)done$(tput sgr0)"