summaryrefslogtreecommitdiff
path: root/doc/install.html
diff options
context:
space:
mode:
authorMike Pall <mike>2012-01-23 22:30:25 +0100
committerMike Pall <mike>2012-01-23 22:30:25 +0100
commit20813bcee0a8a6b2d94b58a5b15a79d90503202f (patch)
tree9374e1645b53b762b2ef80ade43a817c78d4108f /doc/install.html
parent5bed11e6b4c2bbf0cbec0f00efe998289236b217 (diff)
downloadluajit-20813bcee0a8a6b2d94b58a5b15a79d90503202f.tar.gz
luajit-20813bcee0a8a6b2d94b58a5b15a79d90503202f.tar.bz2
luajit-20813bcee0a8a6b2d94b58a5b15a79d90503202f.zip
MIPS: Update install docs.
Diffstat (limited to 'doc/install.html')
-rw-r--r--doc/install.html22
1 files changed, 22 insertions, 0 deletions
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:
142<td class="compatos compatno">&nbsp;</td> 142<td class="compatos compatno">&nbsp;</td>
143<td class="compatos compatno">&nbsp;</td> 143<td class="compatos compatno">&nbsp;</td>
144</tr> 144</tr>
145<tr class="even">
146<td class="compatcpu"><a href="#mips">MIPS</a></td>
147<td class="compatos">GCC 4.3+</td>
148<td class="compatos">GCC 4.3+</td>
149<td class="compatos compatno">&nbsp;</td>
150<td class="compatos compatno">&nbsp;</td>
151</tr>
145</table> 152</table>
146 153
147<h2>Configuring LuaJIT</h2> 154<h2>Configuring LuaJIT</h2>
@@ -405,6 +412,21 @@ make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu-
405make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- 412make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe-
406</pre> 413</pre>
407<p> 414<p>
415You can cross-compile for a big-endian or little-endian
416<b id="mips">MIPS target</b> on x86 or x64 host systems using a standard
417GNU cross-compile toolchain (Binutils, GCC, EGLIBC).
418The <tt>CROSS</tt> prefix may vary depending on the <tt>--target</tt>
419of the toolchain:
420</p>
421<pre class="code">
422# MIPS big-endian
423make HOST_CC="gcc -m32" CROSS=mips-linux-
424</pre>
425<pre class="code">
426# MIPS little-endian
427make HOST_CC="gcc -m32" CROSS=mipsel-linux-
428</pre>
429<p>
408Whenever the <b>host OS and the target OS differ</b>, you need to specify 430Whenever the <b>host OS and the target OS differ</b>, you need to specify
409<tt>TARGET_SYS</tt> or you'll get assembler or linker errors. E.g. if 431<tt>TARGET_SYS</tt> or you'll get assembler or linker errors. E.g. if
410you're compiling on a Windows or OSX host for embedded Linux or Android, 432you're compiling on a Windows or OSX host for embedded Linux or Android,