summaryrefslogtreecommitdiff
path: root/doc/install.html
diff options
context:
space:
mode:
authorMike Pall <mike>2011-04-17 12:48:28 +0200
committerMike Pall <mike>2011-04-17 12:48:28 +0200
commitb53ca064d4ffba1f697ff953aeb6d0108859840f (patch)
treecf314501476254c906c18a2c08b2e4211ba372ae /doc/install.html
parent38a842a474aa416b0a13f51979d42e25746c83cd (diff)
downloadluajit-b53ca064d4ffba1f697ff953aeb6d0108859840f.tar.gz
luajit-b53ca064d4ffba1f697ff953aeb6d0108859840f.tar.bz2
luajit-b53ca064d4ffba1f697ff953aeb6d0108859840f.zip
ARM: Add install docs.
Diffstat (limited to 'doc/install.html')
-rw-r--r--doc/install.html37
1 files changed, 33 insertions, 4 deletions
diff --git a/doc/install.html b/doc/install.html
index e4dbef8f..b43c472e 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -102,7 +102,7 @@ operating system, CPU and compilers:
102<table class="compat"> 102<table class="compat">
103<tr class="compathead"> 103<tr class="compathead">
104<td class="compatcpu">CPU / OS</td> 104<td class="compatcpu">CPU / OS</td>
105<td class="compatos"><a href="#posix">Linux</a></td> 105<td class="compatos"><a href="#posix">Linux</a><br><a href="#cross">or Android</a></td>
106<td class="compatos"><a href="#posix">OSX<br>10.3-10.6</a></td> 106<td class="compatos"><a href="#posix">OSX<br>10.3-10.6</a></td>
107<td class="compatos"><a href="#posix">*BSD, other</a></td> 107<td class="compatos"><a href="#posix">*BSD, other</a></td>
108<td class="compatos"><a href="#windows">Windows<br>98/XP/Vista/7</a></td> 108<td class="compatos"><a href="#windows">Windows<br>98/XP/Vista/7</a></td>
@@ -122,6 +122,13 @@ operating system, CPU and compilers:
122<td class="compatos">MSVC + SDK v7.0<br>WinSDK v7.0</td> 122<td class="compatos">MSVC + SDK v7.0<br>WinSDK v7.0</td>
123</tr> 123</tr>
124<tr class="odd"> 124<tr class="odd">
125<td class="compatcpu">ARM</td>
126<td class="compatos">GCC 4.3+</td>
127<td class="compatos compatno">&nbsp;</td>
128<td class="compatos compatno">&nbsp;</td>
129<td class="compatos compatno">&nbsp;</td>
130</tr>
131<tr class="even">
125<td class="compatcpu">PPC/e500v2</td> 132<td class="compatcpu">PPC/e500v2</td>
126<td class="compatos">GCC 4.3+</td> 133<td class="compatos">GCC 4.3+</td>
127<td class="compatos compatno">&nbsp;</td> 134<td class="compatos compatno">&nbsp;</td>
@@ -320,7 +327,7 @@ The build system has limited support for cross-compilation. For details
320check the comments in <tt>src/Makefile</tt>. Here are some popular examples: 327check the comments in <tt>src/Makefile</tt>. Here are some popular examples:
321</p> 328</p>
322<p> 329<p>
323You can cross-compile to a 32 bit binary on a multilib x64 OS by 330You can cross-compile to a <b>32 bit binary on a multilib x64 OS</b> by
324installing the multilib development packages (e.g. <tt>libc6-dev-i386</tt> 331installing the multilib development packages (e.g. <tt>libc6-dev-i386</tt>
325on Debian/Ubuntu) and running: 332on Debian/Ubuntu) and running:
326</p> 333</p>
@@ -328,14 +335,36 @@ on Debian/Ubuntu) and running:
328make CC="gcc -m32" 335make CC="gcc -m32"
329</pre> 336</pre>
330<p> 337<p>
331You can cross-compile for a Windows target on Debian/Ubuntu by 338You can cross-compile for a <b>Windows target on Debian/Ubuntu</b> by
332installing the <tt>mingw32</tt> package and running: 339installing the <tt>mingw32</tt> package and running:
333</p> 340</p>
334<pre class="code"> 341<pre class="code">
335make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows 342make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows
336</pre> 343</pre>
337<p> 344<p>
338You can cross-compile for a PPC/e500v2 target on an x86 or x64 host system 345You can cross-compile for an <b>ARM target</b> on an x86 or x64 host
346system using a standard GNU cross-compile toolchain (Binutils, GCC,
347EGLIBC). The <tt>CROSS</tt> prefix may vary depending on the
348<tt>--target</tt> of the toolchain:
349</p>
350<pre class="code">
351make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- TARGET=arm
352</pre>
353<p>
354You can cross-compile for <b>Android (ARM)</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">&raquo;</span>&nbsp;Android NDK</a>.
355The environment variables need to match the install locations and the
356desired target platform. E.g. Android&nbsp;2.2 corresponds to ABI level&nbsp;8:
357</p>
358<pre class="code">
359NDK=/opt/android/ndk
360NDKABI=8
361NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3
362NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
363NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
364make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET=arm
365</pre>
366<p>
367You can cross-compile for a <b>PPC/e500v2 target</b> on an x86 or x64 host system
339using a standard GNU cross-compile toolchain (Binutils, GCC, EGLIBC). 368using a standard GNU cross-compile toolchain (Binutils, GCC, EGLIBC).
340The <tt>CROSS</tt> prefix may vary depending on the <tt>--target</tt> 369The <tt>CROSS</tt> prefix may vary depending on the <tt>--target</tt>
341of the toolchain: 370of the toolchain: