On 10/30/2026 3:18 AM, Philippe Mathieu-Daudé wrote:
> On 2026-10-29 20:27, Pierrick Bouvier wrote:
>> On 10/29/2026 9:44 AM, Philippe Mathieu-Daudé wrote:
>>> Similarly to commit eaba84a5e1c9 ("tests/docker/debian-all-test:
>>> add mips32r5 toolchain"), add the Bootlin mips32r6el glibc
>>> toolchain, renaming its mipsel-* binaries as mips32r6el-*.
>>>
>>> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
>>> ---
>>>   .../docker/dockerfiles/debian-all-test-cross.docker | 13 +++++++++++++
>>>   1 file changed, 13 insertions(+)
>>>
>>> diff --git a/tests/docker/dockerfiles/debian-all-test-cross.docker b/
>>> tests/docker/dockerfiles/debian-all-test-cross.docker
>>> index eefc03c49a4f..d0e59df84ebc 100644
>>> --- a/tests/docker/dockerfiles/debian-all-test-cross.docker
>>> +++ b/tests/docker/dockerfiles/debian-all-test-cross.docker
>>> @@ -129,6 +129,19 @@ RUN apt update && \
>>>     rename 's/mipsel/mips32r5el/' mipsel*
>>>   ENV PATH="$PATH:/opt/mips32r5el/bin"
>>>   +# download mips32r6el toolchain from bootlin, and rename binaries
>>> who are simply
>>> +# named mipsel-linux-gnu-*
>>> +RUN apt update && \
>>> +  mkdir -p /opt/mips32r6el/ && \
>>> +  cd /opt/mips32r6el/ && \
>>> +  wget -q https://toolchains.bootlin.com/downloads/releases/
>>> toolchains/mips32r6el/tarballs/mips32r6el--glibc--
>>> stable-2026.08-1.tar.xz && \
>>> +  tar xvf *.tar.xz && \
>>> +  rm *.tar.xz && \
>>> +  mv mips32r6el--glibc--stable-2026.08-1/* . && \
>>> +  cd bin && \
>>> +  rename 's/mipsel/mips32r6el/' mipsel*
>>> +ENV PATH="$PATH:/opt/mips32r6el/bin"
>>> +
>>>   ENV QEMU_CONFIGURE_OPTS=--disable-docs
>>>   ENV DEF_TARGET_LIST=aarch64-linux-user,alpha-linux-user,arm-linux-
>>> user,hppa-linux-user,i386-linux-user,m68k-linux-user,mips-linux-
>>> user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,ppc-
>>> linux-user,ppc64-linux-user,ppc64le-linux-user,riscv64-linux-
>>> user,s390x-linux-user,sh4-linux-user,sparc64-linux-user
>>>   # As a final step configure the user (if env is defined)
>>
>> Would package mipsisa32r6el-linux-gnu (and companion libc) from debian
>> work instead of this one?
>>
>> I added mips32r5 toolchain from bootlin because there were no matching
>> packages in debian, but I think it's better supported for mips32r6.
> Indeed it works with the Debian toolchain, all the tests pass. The
> only difference is Debian packages older versions (GCC GCC 14.2.0
> vs GCC 15.3.0 for Bootlin and glibc 2.40 vs 2.44), not important.

No problem with this, that's a better choice since we don't introduce
another external dependency.

Regards,
Pierrick

Reply via email to