diff --git a/Dockerfile b/Dockerfile index fc633d6..dd07155 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,16 @@ +# hadolint ignore=DL3007 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 set -eux; \ + pacman -Syy --noconfirm \ + arm-none-eabi-gcc \ + arm-none-eabi-newlib \ + base-devel \ + git \ + python-crcmod RUN git submodule update --init --recursive -#RUN make && cp firmware* compiled-firmware/ diff --git a/Makefile b/Makefile index 97c565b..d22179e 100755 --- a/Makefile +++ b/Makefile @@ -173,7 +173,6 @@ DEPS = $(OBJS:.o=.d) all: $(TARGET) $(OBJCOPY) -O binary $< $<.bin -python fw-pack.py $<.bin $(GIT_HASH) $<.packed.bin - -python3 fw-pack.py $<.bin $(GIT_HASH) $<.packed.bin $(SIZE) $< debug: diff --git a/compile-with-docker.sh b/compile-with-docker.sh index fb5dd01..8d4ccc0 100755 --- a/compile-with-docker.sh +++ b/compile-with-docker.sh @@ -1,3 +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 +docker run -v "$(pwd)/compiled-firmware:/app/compiled-firmware" uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/"