diff --git a/Dockerfile b/Dockerfile index dd07155..b1da8f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,6 @@ # hadolint ignore=DL3007 FROM archlinux:latest -WORKDIR /app - -COPY . . - RUN set -eux; \ pacman -Syy --noconfirm \ arm-none-eabi-gcc \ @@ -13,4 +9,8 @@ RUN set -eux; \ git \ python-crcmod +WORKDIR /app + +COPY . . + RUN git submodule update --init --recursive diff --git a/compile-with-docker.bat b/compile-with-docker.bat new file mode 100644 index 0000000..42adad1 --- /dev/null +++ b/compile-with-docker.bat @@ -0,0 +1,4 @@ +@echo off +docker build -t uvk5 . +docker run -v %CD%\compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make clean && make && cp firmware* compiled-firmware/" +pause \ No newline at end of file