12add0d91Sopenharmony_ciFROM ubuntu:22.04 22add0d91Sopenharmony_ci 32add0d91Sopenharmony_ciRUN apt-get update && apt-get install -y --no-install-recommends \ 42add0d91Sopenharmony_ci gcc libc6-dev qemu-user ca-certificates qemu-system-mipsel curl \ 52add0d91Sopenharmony_ci xz-utils patch 62add0d91Sopenharmony_ci 72add0d91Sopenharmony_ciRUN mkdir /toolchain 82add0d91Sopenharmony_ci 92add0d91Sopenharmony_ci# binutils 2.33.1 102add0d91Sopenharmony_ci# gcc 9.3.0 112add0d91Sopenharmony_ci# gdb 8.3.1 122add0d91Sopenharmony_ci# linux-headers 4.9.234 132add0d91Sopenharmony_ci# uclibc 1.0.34 142add0d91Sopenharmony_ciRUN curl --retry 5 -L https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--uclibc--stable-2020.08-1.tar.bz2 | \ 152add0d91Sopenharmony_ci tar xjf - -C /toolchain --strip-components=1 162add0d91Sopenharmony_ciRUN /toolchain/relocate-sdk.sh 172add0d91Sopenharmony_ci 182add0d91Sopenharmony_ciENV PATH=$PATH:/rust/bin:/toolchain/bin \ 192add0d91Sopenharmony_ci STAGING_DIR=/toolchain/mipsel-buildroot-linux-uclibc/sysroot \ 202add0d91Sopenharmony_ci CC_mipsel_unknown_linux_uclibc=mipsel-buildroot-linux-uclibc-gcc \ 212add0d91Sopenharmony_ci CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_LINKER=mipsel-buildroot-linux-uclibc-gcc \ 222add0d91Sopenharmony_ci CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_RUNNER="qemu-mipsel -L /toolchain/mipsel-buildroot-linux-uclibc/sysroot/" 23