Build/package stlport and libc++ for unknown archs.

Change-Id: I0fdd757c0c585abaa256e59e2bc14212bd06a000
Make standalone toolchain fully support unknown arch.

Change-Id: I76fe1653b824748860c616b2a7a2f8448e737acf

Conflicts:
	build/tools/make-standalone-toolchain.sh
Fix make-standalone-toolchain.sh clang/++ for known archs

previous commit incorrectly add ndk*-py case in clang/++ for
known arch

Change-Id: Idede83bccfb5ecd0d07c811fd4e021f6cc1fdcf2

Conflicts:
	build/tools/make-standalone-toolchain.sh
Fix make-standalone-toolchain.sh clang/++ for known archs

previous commit incorrectly add ndk*-py case in clang/++ for
known arch

Change-Id: Idede83bccfb5ecd0d07c811fd4e021f6cc1fdcf2
Copy SOURCES to on-device toolchain directory for version control

Also add more flags to reduce size of ld.mcld to [more than 10 times]
compensate for the loss of space to the new SOURCES file

Change-Id: I9c24553482a1aefbef7f0d75fbd473fa19bb0130

Conflicts:
	build/tools/build-device-llvm.sh
Make more scripts supporting the unknown archs.

This CL also refines the rule to locate unknown archs.
We check ndk/../development/ndk/platforms as well as
ndk/platforms.

Change-Id: I175e9cb741a38bb80484b4d8b047bd6e0015f2f6

Conflicts:
	build/tools/dev-rebuild-ndk.sh
Add device testing for unknown arch.

This depends on https://android-review.googlesource.com/#/c/64413/
so that we need no STLPORT_FORCE_REBUILD=true.

Change-Id: Iabfe5b0516002687e660e1de4ab8c0445e4a6557

Conflicts:
	tests/run-tests.sh
Remove zip --symlinks

UNIX/VMS symlink doesn't work in windows.  Revert back to
compressing/storing the original file

Change-Id: I6a5923d1bd04d536820b79d578827d3cb822311c

Conflicts:
	build/tools/ndk-common.sh
Add LOCAL_CONLY_FLAGS and APP_CONLY_FLAGS

LOCAL_CFLAGS is passed for C++ compilation as well.  This is by design
to save developers from the trouble of specifying flags twice for both
LOCAL_CFLAGS and LOCAL_CPPFLAGS.  Unfortunately for flags like -std=gnu99
is harmful to g++ (warning) and clang++ (error), and better be specified
in APP/LOCAL_CONLY_FLAGS

Change-Id: I110516ef14e57df78b477a7f51d89bbc9176ad13