mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2024-11-21 05:30:49 +08:00
Dockerfile modified to build much faster, compile-with-docker script for windows (#54)
This commit is contained in:
parent
90781d9785
commit
c070282b25
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
*.o
|
||||
*.d
|
||||
firmware
|
||||
firmware.bin
|
||||
/compiled-firmware
|
||||
link-overlay.S
|
||||
sram-overlay
|
||||
sram-overlay.bin
|
||||
|
@ -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
3
compile-with-docker.bat
Normal 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/"
|
Loading…
Reference in New Issue
Block a user