Skip to content
Snippets Groups Projects
Commit 29488925 authored by davip00's avatar davip00
Browse files

Move container-related files into separate subdir

parent b019fd4b
No related branches found
No related tags found
No related merge requests found
......@@ -25,12 +25,14 @@ RUN chown -R builder:builder /ctng
USER builder
RUN git clone https://github.com/crosstool-ng/crosstool-ng
WORKDIR /ctng/crosstool-ng
# Known-working version
RUN git checkout 36ad0b17a732aaffe4701d5d8d410d6e3e3abba9
COPY no-ulimit.patch .
RUN git apply no-ulimit.patch
RUN ./bootstrap && \
./configure --enable-local && \
make -j$(nproc)
RUN ./ct-ng riscv32-unknown-elf
COPY ctng-config .config
RUN ./ct-ng build
......@@ -75,7 +77,7 @@ FROM docker.io/debian:bookworm AS final
RUN apt update && apt upgrade -y
RUN apt install -y libpixman-1-0 libfdt1 libglib2.0-0 libiscsi7 libnfs13
# Install additional developer tools
RUN apt install -y gdb-multiarch make
RUN apt install -y make
COPY --from=qemu /usr/local /usr/local
COPY --from=toolchain /home/builder/x-tools/riscv32-unknown-elf/* /usr/local/bin/
# Install boot ROM for board
......@@ -83,4 +85,4 @@ COPY --from=bootrom /bootrom /bootrom
# Converting this from the ELF requires a patched esptool, so just copy it from our repo
COPY esp32c3_rev3_rom.bin /bootrom
WORKDIR /work
\ No newline at end of file
WORKDIR /work
This diff is collapsed.
File added
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment