Allow msm-3.4 conditional to apply to msm-3.5 1/2

Change-Id: I5b5386866e9b54d38abc9f3e7f06a1e32e4cbfb6
subst mtune=cortex-a15 to krait2 for msm-% clang device...
    and march=cortex-a9 for a15 otherwise

Change-Id: I6206057e0796ba4db46be4c0bf1a04ea3ade6ad0
build: improve support for a prebuilt clang
- this toolchain replaces the clang that is builded inline and has additional optimization for krait devices
- it gives a noticable performance boost
- more information is found in the pfd at prebuilts/clang/linux-x86/host/msm-3.4
- previous implentation is reverted with this commit

Revert "First, use original cortex-a15 substitution, if no target_clang_version, else,"

This reverts commit 0e524e1a703d79cb1422d6a8d1ae7a774d65d08d.

Revert "build: add  -funsafe-loop-optimizations to unknows clang flags"

This reverts commit 844b052ca0476d56e431e5e6e44c36261aba3327.

Revert "build: restore order to the universe... or at least non-clang renderscript includes"

This reverts commit 4fe36b66987a3ab83cc49a92170d686218422769.

Revert "[DO NOT MERGE]build: fix renderscript header inclusion"

This reverts commit 7de5bc2ea8b3b944d88ea07987cb8a2d75c451c6.

Revert "Prebuilt clang: add a TARGET_ENABLE_PREBUILT_CLANG flag, which sets TARGET_CLANG_VERSION to msm-3.4"

This reverts commit f5ae25bc4d1fd15811d35b4a8995d4aae999a33c.

Revert "build: add support for a prebuilt clang"

This reverts commit ce18eb5b3383af00f090074b1c94e4e6bd27f63c.

build: add support for a prebuilt clang

- this toolchain replaces the clang that is builded inline and has additional optimization for krait devices
- it gives a noticable performance boost
- more information is found in the pfd at prebuilts/clang/linux-x86/host/msm-3.4

build: add support for a prebuilt clang

- set TARGET_CLANG_VERSION to your desired clang version to use it

ps2: RETAIN SUPPORT FOR STOCK CLANG... ASDLKJSHADLKSJAHDLKDHJA
ps3: derp
ps4: set stock clang
ps5: fixup the header inclusion
ps6: add guard for default clang version
ps7: cortex-15 if supported by both clang versions, and fixup header inclusion
ps8: fix derp
ps9: FIX SHIT UP FOR REAL?
ps10: copy/paste derp
ps11: ifeq--->ifneq
ps12: don't enable by default
ps14: revise conditionalization if CLANG_EXTRA_INCLUDES and restore mcpu substitution for global stock clang
Change-Id: I07c1725bec1600d7082ff3b57d0b82820eb408a1
Signed-off-by: bart452 <bart4524@gmail.com>

Conflicts:
	core/clear_vars.mk
	core/dumpvar.mk

build: fix renderscript header inclusion

- to build frameworks/rs with the prebuilt clang

credits to @xboxfanj for the idea

Change-Id: Ifb79d60840bdd8e8dbf5a50cf73b4ae4082e4c3a
Signed-off-by: bart452 <bart4524@gmail.com>

build: add  -funsafe-loop-optimizations to unknows clang flags

- not supported by clang

Change-Id: I280d57a94b2d45b66ef6efaa42d28d822d9b2d2e

build: update configuration for msm clang

Change-Id: Ib2eb53863b39492fbcfec98f1dbe258287224cfc
Signed-off-by: bart452 <bart4524@gmail.com>

build: drop LOCAL_STOCK_CLANG

- not needed and should not be needed, better to fix it the right way

Change-Id: Ifbd4852661f72d2be1f9640811f5271e65fa639d
Signed-off-by: bart452 <bart4524@gmail.com>
Clang: krait devices not setting msm-3.4/prebuilt shouldn't use msm-3.4 flags

Change-Id: Id8c79a5b8f72eec92a04afd5b557299bd5fb6249
Fixed mounting /system when 'override_prop' is enabled.

Change-Id: I59f035498c2a2d65869cb7f7e6ea9e311b9757be
Really fix krait2 bullshit flags. Previous fixed conditional was ALSO true when undefined.

Change-Id: Ic92db22ff2178dfba9ad7c9680f42189f06f2dfd
balance endifs

Change-Id: If0632ad2e713a8e2648756057970c8eefbebda0d
Correct clang header inclusion

Remove vestige, and prevent a proposed "fix" that would have broken it from doing so

Change-Id: I28cb300d942e7240d0e8d39466aa5cfd277776e1
llvm_config: the derp that keeps on derp.

Change-Id: Ic96de311ae1fd89af160ddab482401a117a81002
Move TARGET_ENABLE_PREBUILT_CLANG setting TARGET_CLANG_VERSION higher in config.mk

Change-Id: Iad1585c2a729fa74634d35dcbef9fa9123a43059
Edify: Add AssertSomeBaseband

Allow releasetools.py to assert a baseband version. Works just like
AssertSomeBootloader.

Change-Id: Ic8eb341cef1d777d983be25ba21a3bc545819c29
Add CMake files to mgrep

Change-Id: I0d153693f88956b9fc84a4826652fc70ed58bb24
build: edit cflags

Change-Id: Idba95127daedd65df2d42120d60aaf8b3ce0fd68