From 6529c33a67b180d961e16abb5d8fd337930da946 Mon Sep 17 00:00:00 2001 From: Paul Burton Date: Tue, 27 May 2014 15:18:42 +0100 Subject: build: mipsel cross compiler support This patch introduces support for building a MIPS cross compiler targetting little endian machines by default. Original-Change-Id: I116f6f431cdf80f5f5f58d2743357a9f70a7347d Original-Signed-off-by: Paul Burton Original-Reviewed-on: https://chromium-review.googlesource.com/207970 Original-Reviewed-by: Aaron Durbin Original-Reviewed-by: David Hendricks (cherry picked from commit d6c9603c41b3d11400cee7b5b409203af0632aa2) Signed-off-by: Marc Jones Change-Id: I543cd2276d2f63ed2036a1c1259c9a07cb8a4ba8 Reviewed-on: http://review.coreboot.org/8518 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/xcompile/xcompile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'util/xcompile') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index ea2eb47f73..29cad285cf 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -168,7 +168,7 @@ EOF } # Architecture definition -SUPPORTED_ARCHITECTURE="x86 arm arm64 riscv" +SUPPORTED_ARCHITECTURE="x86 arm arm64 riscv mipsel" arch_config_arm() { TARCH="arm" @@ -204,6 +204,14 @@ arch_config_x86() { TABI="elf" } +arch_config_mipsel() { + TARCH="mipsel" + TBFDARCH="littlemips" + TCLIST="mipsel" + TWIDTH="32" + TABI="elf" +} + test_architecture() { architecture=$1 -- cgit v1.2.3