| PPC/e500v2 |
GCC 4.3+ |
|
@@ -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: