OSDN Git Service

Support x86+arm multilib build.
authorYing Wang <wangying@google.com>
Thu, 17 Mar 2016 02:53:19 +0000 (19:53 -0700)
committerYing Wang <wangying@google.com>
Thu, 24 Mar 2016 21:47:52 +0000 (14:47 -0700)
commit277e75a488b1b6599482aed9f7c046747baa10df
tree32819b2073a642cfbce1c34ada30211cef3f33fc
parentc6b50027d8dae6e5af97f57a7c3c323ab0d1ab16
Support x86+arm multilib build.

Support TARGET_2ND_ARCH as the binary translation arch.
See target/board/generic_x86_arm/BoardConfig.mk and
target/product/aosp_x86_arm.mk as example for the setup.

In BoardConfig, use the TARGET_2ND_ARCH/etc. variables to set up the
binary translation arch;
Set "TARGET_TRANSLATE_2ND_ARCH := true" to tell the build system it's
not a typical 64-bit multilib configuration.
In product makefile, use "PRODUCT_PACKAGES += libfoo_<2nd_arch>" to
install the TARGET_2ND_ARCH libraries. This also pulls in any dependency
libraries.
By default we don't install any TARGET_2ND_ARCH modules, unless it's
pulled in by PRODUCT_PACKAGES.

Bug: 27526885
Change-Id: I0578e9c80da0532d2fa886a8fcdb140bbc703009
core/base_rules.mk
core/dex_preopt_libart.mk
core/envsetup.mk
core/executable.mk
core/main.mk
core/package.mk
core/prebuilt.mk
target/board/generic_x86_arm/BoardConfig.mk [new file with mode: 0644]
target/product/AndroidProducts.mk
target/product/aosp_x86_arm.mk [new file with mode: 0644]