Initial commit of android port
1. Add android flags in configure
2. Use memalign instead of posix_memalign for android
3. Place tmp files in /sdcard/pocl/tmp for android
4. Rename parallel.so to [kernel_name].so. Bionic probably has a bug that returns same handle for .so with same name in different paths

[build status: not buildable]
Many more checkins needed for android build
Second patch set for android
1. Put tmp files to POCL_TEMP_DIR & clear it at next run
2. patch cl.hpp for android

Not buildable yet
Rebase with upstream master

Initial commit of android port
1. Add android flags in configure
2. Use memalign instead of posix_memalign for android
3. Place tmp files in /sdcard/pocl/tmp for android
4. Rename parallel.so to [kernel_name].so. Bionic probably has a bug that returns same handle for .so with same name in different paths

[build status: not buildable]
Many more checkins needed for android build
Fix cl.hpp for android
Remove examples/tests for android
Adding android build script & dependent prebuilt libs in seperate repo
Implement kernel cache feature [experimental & incomplete]

TODO:
1. Check for pocl version & program build arguments and invalidate
   cache
2. Limit cache folder to a certain size and clear it
3. Side-effects not known yet. Needs testing
4. Cleanup unnecessary files from cache
kernel cache improvements

done:
check for version, build options & presence of #include for cache
invalidation
remove unnecessary files that bloated cache. parallel.bc,
module.so.o & kernel.bc are deleted after their use

testing testing needed
Improve kernel cache for clCreateProgramFromBinary
Even binary programs including spir are cached now
Additional checks
Update pocl_util.c
Fix one more error
Fix number of cores in cpuinfo for android
Adding android example
A simple vector-addition sample
Add more space for cmdline of exe
Avoid calling OsLib setenv. This is not implemented in 4.2.2
Use jni wrapper to call setenv
Set minSdkVer to 17
Take the risk of mfloat-abi hard
Anyways only android versions from 4.2.2 is supported
Modify cpuinfo for android. Use sysfs system cpu node to get consistent info across devices
Revert "Take the risk of mfloat-abi hard"

This reverts commit 8b095f62a17c0479ea10f38095452b3333afd49b.
Freeze for beta release

TBD: rebase with upstream & get ready for merge