From 20813bcee0a8a6b2d94b58a5b15a79d90503202f Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 23 Jan 2012 22:30:25 +0100 Subject: [PATCH] MIPS: Update install docs. --- doc/install.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/doc/install.html b/doc/install.html index 07c55fa6..6fc10002 100644 --- a/doc/install.html +++ b/doc/install.html @@ -142,6 +142,13 @@ operating systems, CPUs and compilers:     + +MIPS +GCC 4.3+ +GCC 4.3+ +  +  +

Configuring LuaJIT

@@ -405,6 +412,21 @@ make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe-

+You can cross-compile for a big-endian or little-endian +MIPS target on x86 or x64 host systems using a standard +GNU cross-compile toolchain (Binutils, GCC, EGLIBC). +The CROSS prefix may vary depending on the --target +of the toolchain: +

+
+# MIPS big-endian
+make HOST_CC="gcc -m32" CROSS=mips-linux-
+
+
+# MIPS little-endian
+make HOST_CC="gcc -m32" CROSS=mipsel-linux-
+
+

Whenever the host OS and the target OS differ, you need to specify TARGET_SYS or you'll get assembler or linker errors. E.g. if you're compiling on a Windows or OSX host for embedded Linux or Android, -- 2.11.4.GIT