Add options to dev-rebuild-ndk.sh and scripts to customize NDK build

--toolchain-src-dir=<dir> to specify toolchain dir if pre-downloaded
--arch=<arch,[arch]> to specify arch to build and package, others skipped
--gcc-version-list=<vers> to specify gcc versions to build and package
--llvm-version-list=<vers> ditto for llvm

Most of these are supported already in underlying scripts.
Also do some cleanup.

Examples:

* Build full set of compilers for gcc and llvm for all archs:
no extra flags
* Build full set for x86_64 only:
--arch=x86_64
* Build full set of supported gcc for x86_64 only:
--arch=x86_64 --llvm-version-list=""
* Build only x86_64-4.8:
--arch=x86_64 --gcc-version-list="4.8" --llvm-version-list=""
* Build only GCC 4.8 and 4.9 and default llvm versions for all platforms:
--gcc-version-list="4.8 4.9"

Change-Id: I77d7154cd44663c390ab42d1a1e9fdff39c4cb27
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Remove duplicated files from windows/darwin packages

Remove the following for case-insensitive filesystem

platforms/android-L/arch-*/usr/include/linux/netfilter_ipv4/ipt_ecn.h
platforms/android-L/arch-*/usr/include/linux/netfilter_ipv4/ipt_ttl.h
platforms/android-L/arch-*/usr/include/linux/netfilter_ipv6/ip6t_hl.h
platforms/android-L/arch-*/usr/include/linux/netfilter/xt_connmark.h
platforms/android-L/arch-*/usr/include/linux/netfilter/xt_dscp.h
platforms/android-L/arch-*/usr/include/linux/netfilter/xt_mark.h
platforms/android-L/arch-*/usr/include/linux/netfilter/xt_rateest.h
platforms/android-L/arch-*/usr/include/linux/netfilter/xt_tcpmss.h

Change-Id: I4a4d64eb5cd888201a7b7b03b40358fa11d672ae
build gcc4.9 mipsr6

Change-Id: I6f77b066816cfa0e42d13f4bc4f5c12c69edbce6
Merge "build gcc4.9 mipsr6"
Merge "Remove duplicated files from windows/darwin packages"
Speed up download-toolchain-sources.sh when /tmp is in different filesystem

Use $NDK_TMPDIR instead of hard-coded /tmp/ndk-$USER.  By default
NDK_TMPDIR is /tmp/ndk-$USER/tmp/build-$$, but developers can
define it to be at the same fs as the specified <src-dir>

Change-Id: I7b270906152694099ce43157e5f8839ac656ceee
Merge "Speed up download-toolchain-sources.sh when /tmp is in different filesystem"
Merge "Add options to dev-rebuild-ndk.sh and scripts to customize NDK build"
Unhide __pthread_cleanup_push and __pthread_cleanup_pop for 64-bit ABIs

Note that unwanted-symbols/{x86_64,mips64}/libc.so.functions.txt symlink
to arm64/libc.so.functions.txt

Change-Id: I9a2ebb0b810fe7396d7d546a877b59233a1fd7a8
Merge "Unhide __pthread_cleanup_push and __pthread_cleanup_pop for 64-bit ABIs"
Merge branch 'master' of https://android.googlesource.com/platform/ndk into HEAD