diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fc633d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +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 git submodule update --init --recursive +#RUN make && cp firmware* compiled-firmware/ diff --git a/compile-with-docker.sh b/compile-with-docker.sh new file mode 100644 index 0000000..fb5dd01 --- /dev/null +++ b/compile-with-docker.sh @@ -0,0 +1,3 @@ +#!/bin/sh +docker build -t uvk5 . +docker run -v $(PWD)/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/" \ No newline at end of file