qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 31/43] tests/tcg: enable building for MIPS


From: Alex Bennée
Subject: Re: [Qemu-devel] [PATCH v2 31/43] tests/tcg: enable building for MIPS
Date: Thu, 19 Apr 2018 18:49:42 +0100
User-agent: mu4e 1.1.0; emacs 26.1

Philippe Mathieu-Daudé <address@hidden> writes:

> On 04/19/2018 10:58 AM, Alex Bennée wrote:
>> This doesn't add any additional tests but enables building the
>> multiarch tests for MIPS using docker cross compilers. We don't have a
>> cross compiler for mips64 big endian though.
>
> Oh we have one, using CFLAGS+=-EB
>
> we don't have cross libraries although.

Yeah I thought the same with the ARM compilers (-mbig-endian) but it's
the libraries that let us down. If, as you say, newlib gets this right I
suspect we should use that to build the compilers not supported out of
the box by Debian.

>
>> Signed-off-by: Alex Bennée <address@hidden>
>> ---
>>  tests/tcg/mips/Makefile.include | 17 +++++++++++++++++
>>  1 file changed, 17 insertions(+)
>>  create mode 100644 tests/tcg/mips/Makefile.include
>>
>> diff --git a/tests/tcg/mips/Makefile.include 
>> b/tests/tcg/mips/Makefile.include
>> new file mode 100644
>> index 0000000000..a9beceb623
>> --- /dev/null
>> +++ b/tests/tcg/mips/Makefile.include
>> @@ -0,0 +1,17 @@
>> +#
>> +# Makefile.include for all MIPs targets
>> +#
>> +# As Debian doesn't support mip64 in big endian mode the only way to
>> +# build BE is to pass a working cross compiler to ./configure
>> +#
>> +
>> +ifeq ($(TARGET_NAME),mips64el)
>> +DOCKER_IMAGE=debian-mips64el-cross
>> +DOCKER_CROSS_COMPILER=mips64el-linux-gnuabi64-gcc
>> +else ifeq ($(TARGET_NAME),mipsel)
>> +DOCKER_IMAGE=debian-mipsel-cross
>> +DOCKER_CROSS_COMPILER=mipsel-linux-gnu-gcc
>> +else ifeq ($(TARGET_NAME),mips)
>> +DOCKER_IMAGE=debian-mips-cross
>> +DOCKER_CROSS_COMPILER=mips-linux-gnu-gcc
>> +endif
>>


--
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]