MIPS platform files for building the NDK

Change-Id: If19af75003aeb8872d23d7901f01c434bdc58a5f
[MIPS] crt* Object files generated from .S files.
The object files are generated with the assembler
built from binutils-2.21
Merge "[MIPS] crt* Object files generated from .S files. The object files are generated with the assembler built from binutils-2.21"
Merge "MIPS platform files for building the NDK"
Fixed to #include correct 32-bit headers

Corrected for example <asm/io.h> to include io_32.h instead of io_64.h
(which is missing, BTW).

Copied from the results of commit (same title) in bionic.git:
126601dd3f5303b50033dcb88945d928aa764aa4
Merge "Fixed to #include correct 32-bit headers"
Fixed inconsistent minSdkVersion and target= in NDK samples

Also removed Dummy.java and auto-gen files
Inspired by http://code.google.com/p/android/issues/detail?id=20017
Merge "Fixed inconsistent minSdkVersion and target= in NDK samples"
ndk: disable logs in release builds of native_app_glue library.

This patch disables all the logs from the 'native_app_glue' helper
library (used to implement native activities with the NDK), unless
you're building a debug build.
Merge "ndk: disable logs in release builds of native_app_glue library."
ndk: arm: Update <asm/ptrace.h> and <asm/user.h>

This is a minor update to two ARM-specific kernel headers.

- <asm/ptrace.h>: Add two new constants
- <asm/user.h>: Add 'struct vfp_user' and 'struct vfp_user_exc'
Merge "ndk: arm: Update <asm/ptrace.h> and <asm/user.h>"
ndk: libc: Add RLIM_RTTIME to <asm-generic/resource.h>

This is a back-port of a fix that was performed in 4.0.1 to all previous platforms.
Merge "ndk: libc: Add RLIM_RTTIME to <asm-generic/resource.h>"
ndk: minor update to <netinet/...> headers.

This patch contains a minor update to the netinet headers from the C library.
Most of the changes come from later platform release, but can be safely back-ported
to previous API levels since they don't change the ABI:

- <netinet/icmp6.h>, <netinet/ip6.h>: new headers
- <netinet/in.h>: now always include <linux/ipv6.h> by default
- <netinet/in6.h>: add macros: IN6_IS_ADDR_ULA, IN6ADDR_LOOPBACK_INIT
- <netinet/ip.h>: add macro: IPTOS_MINCOST
- <net/if_ether.h>: always include <sys/types.h> by default.
Merge "ndk: minor update to <netinet/...> headers."
ndk: Fix <sys/atomics.h> declarations.

The atomic operations exported by the platform's C library do not
provide full memory barriers. This can result in incorrect results
when NDK machine code linked against them runs on multi-core devices.

While the bug has been fixed in the platform, this NDK header change
ensures that any source code that includes <sys/atomics.h> will end
up using a correct implementation of these functions, based on the
corresponding GCC builtins.

These builtins always provide a full barrier and have reasonable
performance. Application developers who depend on <sys/atomics.h>
should recompile their unmodified sources against this version
of the NDK as soon as possible.
Merge "ndk: Fix <sys/atomics.h> declarations."
ndk: Fix ipv6 related headers

This fixes two minor issues with recent updates to the IPv6 related headers:

- add missing <linux/ipv6.h> kernel header
- avoid conflict in netinet/in6.h, the macro is already defined by <linux/in6.h>
Merge "ndk: Fix ipv6 related headers"