summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile9
-rwxr-xr-xbin/build.sh6
2 files changed, 9 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index c31cfe7..dd98a29 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,6 +4,15 @@ RUN mkdir -p /app/firmware
WORKDIR /app
+COPY config/west.yml config/west.yml
+
+# West Init
+RUN west init -l config
+# West Update
+RUN west update
+# West Zephyr export
+RUN west zephyr-export
+
COPY config config
COPY bin/build.sh ./
diff --git a/bin/build.sh b/bin/build.sh
index 869bc68..0e3eb10 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -5,12 +5,6 @@ set -e
PWD=$(pwd)
TIMESTAMP=$(date -u +"%Y%m%d%H%M%S")
-# West Init
-west init -l config
-# West Update
-west update
-# West Zephyr export
-west zephyr-export
# West Build (left)
west build -s zmk/app -d build/left -b adv360_left -- -DZMK_CONFIG="${PWD}/config"
# Adv360 Left DTS File