[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/9] tests/docker: Add debian-nios2-cross image
From: |
Alex Bennée |
Subject: |
Re: [PATCH 1/9] tests/docker: Add debian-nios2-cross image |
Date: |
Thu, 14 Oct 2021 10:34:34 +0100 |
User-agent: |
mu4e 1.7.0; emacs 28.0.60 |
Richard Henderson <richard.henderson@linaro.org> writes:
> On 10/12/21 10:03 AM, Alex Bennée wrote:
>> We need to split this like in hexagon and have a second stage which does
>> a:
>> COPY --from=0 /usr/local /usr/local
>> This will limit the size of the final image (and also avoid
>> duplicting
>> the UID in the hexagon build).
>
> Yeah, well, I had to take that out because it errors out.
> I have no idea what that does or means.
Having this worked for me:
modified tests/docker/dockerfiles/debian-nios2-cross.docker
@@ -31,4 +31,14 @@ ADD build-toolchain.sh /root/build-toolchain.sh
RUN cd /root && ./build-toolchain.sh
+FROM debian:buster-slim
+# Duplicate deb line as deb-src
+RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >>
/etc/apt/sources.list
+# Install QEMU build deps for use in CI
+RUN apt update && \
+ DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
+ DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy git ninja-build
&& \
+ DEBIAN_FRONTEND=noninteractive eatmydata \
+ apt build-dep -yy --arch-only qemu
+COPY --from=0 /usr/local /usr/local
ENV PATH $PATH:/usr/local/bin/
--
Alex Bennée
- [PATCH 4/9] linux-user/elfload: Rename ARM_COMMPAGE to HI_COMMPAGE, (continued)
- [PATCH 4/9] linux-user/elfload: Rename ARM_COMMPAGE to HI_COMMPAGE, Richard Henderson, 2021/10/01
- [PATCH 1/2] tests/docker: Remove fedora-i386-cross from DOCKER_PARTIAL_IMAGES, Richard Henderson, 2021/10/01
- [PATCH 5/9] linux-user/nios2: Map a real kuser page, Richard Henderson, 2021/10/01
- [PATCH 6/9] linux-user/nios2: Fix EA vs PC confusion, Richard Henderson, 2021/10/01
- [PATCH 1/9] tests/docker: Add debian-nios2-cross image, Richard Henderson, 2021/10/01
[PATCH 8/9] linux-user/nios2: Use set_sigmask in do_rt_sigreturn, Richard Henderson, 2021/10/01
[PATCH 7/9] linux-user/nios2: Fix sigmask in setup_rt_frame, Richard Henderson, 2021/10/01
[PATCH 9/9] tests/tcg: Enable container_cross_cc for nios2, Richard Henderson, 2021/10/01
Re: [PATCH 0/9] nios2: Enable cross compile and fix signals, Richard Henderson, 2021/10/11