diff mbox series

[v4,34/49] tests/tcg: enable building for MIPS

Message ID 20180517174718.10107-35-alex.bennee@linaro.org
State Superseded
Headers show
Series fix building of tests/tcg | expand

Commit Message

Alex Bennée May 17, 2018, 5:47 p.m. UTC
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.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
 tests/tcg/mips/Makefile.include | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 tests/tcg/mips/Makefile.include

-- 
2.17.0

Comments

Philippe Mathieu-Daudé May 18, 2018, 2:49 p.m. UTC | #1
On 05/17/2018 02:47 PM, 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.

> 

> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

> ---

>  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

> 


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff mbox series

Patch

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