OSDN Git Service

Reconfig libc's Android.mk to build for multilib
authorYing Wang <wangying@google.com>
Thu, 23 Jan 2014 23:17:50 +0000 (15:17 -0800)
committerYing Wang <wangying@google.com>
Wed, 12 Feb 2014 21:58:34 +0000 (13:58 -0800)
commitf25d677147ae55a1f3b6ef7fa3ee27921792813f
treebc2f15be8e5d496de16cb4f415d4ef4035d5277d
parent022885e2fad5ef9643e05d80c6f50a2a90bf3431
Reconfig libc's Android.mk to build for multilib

1. Moved arch-specific setup to their own files:
    - <arch>/<arch>.mk, arch-specific configs. Variables in those config
      end with the arch name.
    - removed the extra complexity introduced by function libc-add-cpu-variant-src,
      which seems to be not very useful these days.
2. Separated out the crt object files generation rules and set up the
   rules for both TARGET_ARCH and TARGET_2ND_ARCH.
3. Build all the libraries for both TARGET_ARCH and TARGET_2ND_ARCH,
  with the arch-specific LOCAL_ variables.

Bug: 11654773
Change-Id: I9c2d85db0affa49199d182236d2210060a321421
12 files changed:
libc/Android.mk
libc/arch-arm/arm.mk
libc/arch-arm/cortex-a15/cortex-a15.mk
libc/arch-arm/cortex-a9/cortex-a9.mk
libc/arch-arm/generic/generic.mk
libc/arch-arm/krait/krait.mk
libc/arch-arm64/arm64.mk
libc/arch-mips/mips.mk
libc/arch-mips64/mips64.mk
libc/arch-x86/x86.mk
libc/arch-x86_64/x86_64.mk
libc/crt.mk [new file with mode: 0644]