Dockerfile modified to build much faster, compile-with-docker script for windows (#54)

This commit is contained in:
egzumer 2023-09-28 15:51:14 +02:00 committed by GitHub
parent 90781d9785
commit c070282b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,7 +1,6 @@
*.o
*.d
firmware
firmware.bin
/compiled-firmware
link-overlay.S
sram-overlay
sram-overlay.bin

View File

@ -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/

3
compile-with-docker.bat Normal file
View File

@ -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/"