• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# FIXME: Update to 22.04 once Debian image of sparc64 has a newer glibc.
2FROM ubuntu:20.04
3
4RUN apt-get update && apt-get install -y --no-install-recommends \
5        curl ca-certificates \
6        gcc libc6-dev \
7        gcc-sparc64-linux-gnu libc6-dev-sparc64-cross \
8        qemu-system-sparc64 openbios-sparc seabios ipxe-qemu \
9        p7zip-full cpio linux-libc-dev-sparc64-cross
10
11COPY linux-sparc64.sh /
12RUN bash /linux-sparc64.sh
13
14COPY test-runner-linux /
15
16ENV CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_LINKER=sparc64-linux-gnu-gcc \
17    CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_RUNNER="/test-runner-linux sparc64" \
18    CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc \
19    PATH=$PATH:/rust/bin
20