From b53ca064d4ffba1f697ff953aeb6d0108859840f Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 17 Apr 2011 12:48:28 +0200 Subject: [PATCH] ARM: Add install docs. --- doc/install.html | 37 +++++++++++++++++++++++++++++++++---- 1 file 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: - + @@ -122,6 +122,13 @@ operating system, CPU and compilers: + + + + + + + @@ -320,7 +327,7 @@ The build system has limited support for cross-compilation. For details check the comments in src/Makefile. Here are some popular examples:

-You can cross-compile to a 32 bit binary on a multilib x64 OS by +You can cross-compile to a 32 bit binary on a multilib x64 OS by installing the multilib development packages (e.g. libc6-dev-i386 on Debian/Ubuntu) and running:

@@ -328,14 +335,36 @@ on Debian/Ubuntu) and running: make CC="gcc -m32"

-You can cross-compile for a Windows target on Debian/Ubuntu by +You can cross-compile for a Windows target on Debian/Ubuntu by installing the mingw32 package and running:

 make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows
 

-You can cross-compile for a PPC/e500v2 target on an x86 or x64 host system +You can cross-compile for an ARM target on an x86 or x64 host +system using a standard GNU cross-compile toolchain (Binutils, GCC, +EGLIBC). The CROSS prefix may vary depending on the +--target of the toolchain: +

+
+make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- TARGET=arm
+
+

+You can cross-compile for Android (ARM) using the » Android NDK. +The environment variables need to match the install locations and the +desired target platform. E.g. Android 2.2 corresponds to ABI level 8: +

+
+NDK=/opt/android/ndk
+NDKABI=8
+NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3
+NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
+NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
+make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET=arm
+
+

+You can cross-compile for a PPC/e500v2 target on an x86 or x64 host system using a standard GNU cross-compile toolchain (Binutils, GCC, EGLIBC). The CROSS prefix may vary depending on the --target of the toolchain:

CPU / OSLinuxLinux
or Android
OSX
10.3-10.6
*BSD, other Windows
98/XP/Vista/7
MSVC + SDK v7.0
WinSDK v7.0
ARMGCC 4.3+   
PPC/e500v2 GCC 4.3+