OSDN Git Service

Add support for armeabi-v7a to the NDK.
authorDavid 'Digit' Turner <digit@google.com>
Thu, 19 Nov 2009 02:05:55 +0000 (18:05 -0800)
committerDavid 'Digit' Turner <digit@google.com>
Fri, 20 Nov 2009 22:07:15 +0000 (14:07 -0800)
commitcc049d5a779a6d64ba1dcd29a1ff031ad4891d47
treee1e19bfeb1719d436f49f7f391e36e33f34bb010
parentfe4b8a2de1f396e55ef6b277a75efa7665e562df
Add support for armeabi-v7a to the NDK.

This patch modifies the NDK build scripts to support the 'armeabi-v7a' ABI.
(For the record, it corresponds to Thumb-2 + FPU support, to speed up native
code on certain devices like the Droid).

To build for this ABI, the Application.mk file should use a line like:

  APP_ABI := armeabi-v7a

It is also possible to build for both 'armeabi' and 'armeabi-v7a' by using:

  APP_ABI := armeabi armeabi-v7a

This will result in the generation of two distinct shared libraries that both
will be copied to the final application package.

This is dependent on having GCC 4.4.0 prebuilt binaries under
build/prebuilt/<host>/arm-eabi-4.4.0, since gcc 4.2.1 does not support
this new ABI.

Note that this also changes the NDK to use gcc 4.4.0 by default, unless
the user defines NDK_TOOLCHAIN to 'arm-eabi-4.2.1' in its environment to
switch back to the previous one.
13 files changed:
build/core/definitions.mk
build/core/main.mk
build/core/setup-abi.mk [new file with mode: 0644]
build/core/setup-app.mk
build/core/setup-toolchain.mk
build/toolchains/arm-eabi-4.2.1/config.mk
build/toolchains/arm-eabi-4.4.0/config.mk [new file with mode: 0644]
build/toolchains/arm-eabi-4.4.0/setup.mk [new file with mode: 0644]
docs/ANDROID-MK.TXT
docs/APPLICATION-MK.TXT
docs/CHANGES.TXT
docs/CPU-ARCH-ABIS.TXT [new file with mode: 0644]
docs/STABLE-APIS.TXT