Skip to content

Commit

Permalink
test: update dockerfile and address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarak committed Jan 29, 2025
1 parent e8d7631 commit ba70750
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions firmwares/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,18 @@ SHELL [ "/bin/bash", "-o", "pipefail", "-c" ]
WORKDIR /firmware
COPY . /firmware

RUN git clone https://github.com/IRNAS/pulseox-firmware.git && \
cd /firmware/pulseox-firmware && \
git submodule init && \
git submodule update && \
RUN git clone --depth=1 --recursive https://github.com/IRNAS/pulseox-firmware.git && \
cd pulseox-firmware && \
patch -s -p1 < ../pulseox-firmware-patch.diff && \
mkdir -p build && cd build && \
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/arm-none-eabi.cmake .. && \
make
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/arm-none-eabi.cmake && \
cmake --build build -j$(nproc)

WORKDIR /firmware

RUN git clone https://github.com/CodethinkLabs/bloodlight-firmware.git && \
cd /firmware/bloodlight-firmware && \
git submodule init && \
git submodule update && \
RUN git clone --depth=1 --recursive https://github.com/CodethinkLabs/bloodlight-firmware.git && \
cd bloodlight-firmware && \
make -C firmware/libopencm3 && \
make -C firmware
make -C firmware -j$(nproc)

FROM ${IMAGE}
COPY --from=builder /firmware/pulseox-firmware/build/src/firmware.elf /output/pulseox-firmware.elf
Expand Down

0 comments on commit ba70750

Please sign in to comment.