diff --git a/.gitignore b/.gitignore index 4317070..22f6c95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ *.o *.d -firmware -firmware.bin +/compiled-firmware link-overlay.S sram-overlay sram-overlay.bin diff --git a/Dockerfile b/Dockerfile index fc633d6..4b6c3f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM archlinux:latest -WORKDIR /app -COPY . . RUN pacman -Syyu base-devel --noconfirm RUN pacman -Syyu arm-none-eabi-gcc --noconfirm RUN pacman -Syyu arm-none-eabi-newlib --noconfirm RUN pacman -Syyu git --noconfirm +RUN pacman -Syyu python-pip --noconfirm +RUN pacman -Syyu python-crcmod --noconfirm +WORKDIR /app +COPY . . RUN git submodule update --init --recursive #RUN make && cp firmware* compiled-firmware/ diff --git a/compile-with-docker.bat b/compile-with-docker.bat new file mode 100644 index 0000000..f1eae9b --- /dev/null +++ b/compile-with-docker.bat @@ -0,0 +1,3 @@ +@echo off +docker build -t uvk5 . +docker run -v %CD%\compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/" \ No newline at end of file