[MIPSR6] R6 target options for clang

Pass along new R6 target arch options and floating
point register model options to clang.
Also pass along older arch variants.

This patch depends on recent Mips extensions to 3.5 clang.
The new options are rejected by aosp's current 3.5 clang.
This only affects builds for mips32r6/mips64r6, not Android's
default builds for mips32r2.

Change-Id: Ic921dc14ced34a83143a82e322124b3ef035014a
Add missing flags to x86 (both 32- and 64-bit) arch variants.
Delete x86_64-atom.mk as we don't support 64-bit on old Atom.

Change-Id: I0b9ab61cd9b840f32c30059cb3ba9704c733c42a
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
Add SignTos tool

Change-Id: Iac7db75cda383e333a55236c3678cd56f8245d6e
Merge "Add SignTos tool"
wrap make and print success/failure message, more later

Change-Id: I48a4687d81bc4b950a1be42b34d2f0d76733574a
(cherry picked from commit cc6be0a369ece60818edbd2f604b5a929496b3f5)
Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option.

If WITH_DEXOPT_BOOT_IMG_ONLY=true and WITH_DEXPREOPT=true then we will
only preopt the boot.art and boot.oat files, leaving everything else to
be compiled at first boot. This has fast startup times of WITH_DEXPREOPT
but has a smaller space usage and allows one to update the non-image
parts of /system without reflashing.

Bug: 16938924

Change-Id: Ib366b6b5ad80f7078f01bf51f9fbc29ea7e5d777
Merge "wrap make and print success/failure message, more later"
Merge "Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option."
Apply TARGET_GLOBAL_LDFLAGS to transform-bc-to-so

This fixes mips unbundled build since we switched to mips64el toolchain
for both mips and mips64.
TODO: multilib build support.

Change-Id: I7add92d2cecfc3ab739785ceef6700240a25093a
Merge "Apply TARGET_GLOBAL_LDFLAGS to transform-bc-to-so"
Fix HOST_LIBRARY_PATH.

Since we switched to $(HOST_OUT)/lib64 for 64-bit libraries and
$(HOST_OUT)/lib for 32-bit libraries.

Change-Id: Ie43bc03c37e2ac8542412a7543a6af5d60c6f725
Merge "Fix HOST_LIBRARY_PATH."
Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD.

bug 17007253

Change-Id: Ib11c017bf8aee384e6780e2a1252221fbff3327a
Merge "Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD."
Add compile time check for statically linked libc

Bug: 17047392

(cherry picked from commit 655d6851f308ad890193787a848b003685d3df9c)

Change-Id: Ia824137e690b9bca1688a7603254273a737ddcbb
Merge "Add compile time check for statically linked libc"
Remove HAVE_GETTID.

Bug: 17048545
Change-Id: Ib5b72ecb451a26cb393147a44601566400ca1dd6
Merge "Remove HAVE_GETTID."
Strip my_clang on assignment.

There were a few cases that my_clang was being used without being
stripped. This was causing uses like the following to fail because it
would be partially applied (use clang as the compiler, but don't strip
out incompatible cflags).

    LOCAL_CLANG := true # explanation

To avoid this problem in the future, just strip my_clang when it is
assigned.

Change-Id: I41c2f36a4d4c3aa305a25b4a151c066dad5ffe0f
Merge "Strip my_clang on assignment."