diff options
| author | Mike Pall <mike> | 2012-01-23 22:30:25 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2012-01-23 22:30:25 +0100 |
| commit | 20813bcee0a8a6b2d94b58a5b15a79d90503202f (patch) | |
| tree | 9374e1645b53b762b2ef80ade43a817c78d4108f | |
| parent | 5bed11e6b4c2bbf0cbec0f00efe998289236b217 (diff) | |
| download | luajit-20813bcee0a8a6b2d94b58a5b15a79d90503202f.tar.gz luajit-20813bcee0a8a6b2d94b58a5b15a79d90503202f.tar.bz2 luajit-20813bcee0a8a6b2d94b58a5b15a79d90503202f.zip | |
MIPS: Update install docs.
| -rw-r--r-- | doc/install.html | 22 |
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"> </td> | 142 | <td class="compatos compatno"> </td> |
| 143 | <td class="compatos compatno"> </td> | 143 | <td class="compatos compatno"> </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"> </td> | ||
| 150 | <td class="compatos compatno"> </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- | |||
| 405 | make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- | 412 | make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- |
| 406 | </pre> | 413 | </pre> |
| 407 | <p> | 414 | <p> |
| 415 | You 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 | ||
| 417 | GNU cross-compile toolchain (Binutils, GCC, EGLIBC). | ||
| 418 | The <tt>CROSS</tt> prefix may vary depending on the <tt>--target</tt> | ||
| 419 | of the toolchain: | ||
| 420 | </p> | ||
| 421 | <pre class="code"> | ||
| 422 | # MIPS big-endian | ||
| 423 | make HOST_CC="gcc -m32" CROSS=mips-linux- | ||
| 424 | </pre> | ||
| 425 | <pre class="code"> | ||
| 426 | # MIPS little-endian | ||
| 427 | make HOST_CC="gcc -m32" CROSS=mipsel-linux- | ||
| 428 | </pre> | ||
| 429 | <p> | ||
| 408 | Whenever the <b>host OS and the target OS differ</b>, you need to specify | 430 | Whenever 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 |
| 410 | you're compiling on a Windows or OSX host for embedded Linux or Android, | 432 | you're compiling on a Windows or OSX host for embedded Linux or Android, |
