diff options
author | Mike Pall <mike> | 2011-04-17 12:48:28 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-04-17 12:48:28 +0200 |
commit | b53ca064d4ffba1f697ff953aeb6d0108859840f (patch) | |
tree | cf314501476254c906c18a2c08b2e4211ba372ae /doc/install.html | |
parent | 38a842a474aa416b0a13f51979d42e25746c83cd (diff) | |
download | luajit-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.html | 37 |
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"> </td> | ||
128 | <td class="compatos compatno"> </td> | ||
129 | <td class="compatos compatno"> </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"> </td> | 134 | <td class="compatos compatno"> </td> |
@@ -320,7 +327,7 @@ The build system has limited support for cross-compilation. For details | |||
320 | check the comments in <tt>src/Makefile</tt>. Here are some popular examples: | 327 | check the comments in <tt>src/Makefile</tt>. Here are some popular examples: |
321 | </p> | 328 | </p> |
322 | <p> | 329 | <p> |
323 | You can cross-compile to a 32 bit binary on a multilib x64 OS by | 330 | You can cross-compile to a <b>32 bit binary on a multilib x64 OS</b> by |
324 | installing the multilib development packages (e.g. <tt>libc6-dev-i386</tt> | 331 | installing the multilib development packages (e.g. <tt>libc6-dev-i386</tt> |
325 | on Debian/Ubuntu) and running: | 332 | on Debian/Ubuntu) and running: |
326 | </p> | 333 | </p> |
@@ -328,14 +335,36 @@ on Debian/Ubuntu) and running: | |||
328 | make CC="gcc -m32" | 335 | make CC="gcc -m32" |
329 | </pre> | 336 | </pre> |
330 | <p> | 337 | <p> |
331 | You can cross-compile for a Windows target on Debian/Ubuntu by | 338 | You can cross-compile for a <b>Windows target on Debian/Ubuntu</b> by |
332 | installing the <tt>mingw32</tt> package and running: | 339 | installing the <tt>mingw32</tt> package and running: |
333 | </p> | 340 | </p> |
334 | <pre class="code"> | 341 | <pre class="code"> |
335 | make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows | 342 | make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows |
336 | </pre> | 343 | </pre> |
337 | <p> | 344 | <p> |
338 | You can cross-compile for a PPC/e500v2 target on an x86 or x64 host system | 345 | You can cross-compile for an <b>ARM target</b> on an x86 or x64 host |
346 | system using a standard GNU cross-compile toolchain (Binutils, GCC, | ||
347 | EGLIBC). The <tt>CROSS</tt> prefix may vary depending on the | ||
348 | <tt>--target</tt> of the toolchain: | ||
349 | </p> | ||
350 | <pre class="code"> | ||
351 | make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- TARGET=arm | ||
352 | </pre> | ||
353 | <p> | ||
354 | You can cross-compile for <b>Android (ARM)</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">»</span> Android NDK</a>. | ||
355 | The environment variables need to match the install locations and the | ||
356 | desired target platform. E.g. Android 2.2 corresponds to ABI level 8: | ||
357 | </p> | ||
358 | <pre class="code"> | ||
359 | NDK=/opt/android/ndk | ||
360 | NDKABI=8 | ||
361 | NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3 | ||
362 | NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- | ||
363 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" | ||
364 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET=arm | ||
365 | </pre> | ||
366 | <p> | ||
367 | You can cross-compile for a <b>PPC/e500v2 target</b> on an x86 or x64 host system | ||
339 | using a standard GNU cross-compile toolchain (Binutils, GCC, EGLIBC). | 368 | using a standard GNU cross-compile toolchain (Binutils, GCC, EGLIBC). |
340 | The <tt>CROSS</tt> prefix may vary depending on the <tt>--target</tt> | 369 | The <tt>CROSS</tt> prefix may vary depending on the <tt>--target</tt> |
341 | of the toolchain: | 370 | of the toolchain: |