ota_from_target_files: remove duplicate setting of recovery_img

This variable is already set earlier in the script and does not need
to be wrapped inside of the if statement

Change-Id: I91b7f7d2fc911a3910b3df09cff0ca0f44fe7741
releasetools: Fix error text in ota_from_target_files

property isn't the variable name, prop is

Change-Id: I0fc6adddfd51ba9bc79f6559c61cd831203c9e3d
Introduce Link Time Optimization

Summary:
This introduces the following improvements:
  - Can be globally enabled with TARGET_ENABLE_LTO := true
  - Can be locally disabled with LOCAL_NO_LTO_SUPPORT.
  - Host modules now build without LTO by default.
  - Modules built with clang no longer need -fno-lto specified locally (LTO disabled here automatically)
  - Modules built with clang no longer have -fno-toplevel-reorder unnecessarily set.

http://pastebin.com/FaxSUzVy

ps5: don't enable it by default because of poor device support
ps6: make additional clang ignores lto-dependant
ps7: fix caucasian space
ps8: turn off section anchors when LTO is on (fixes "cc1plus: error: section anchors must be disabled when toplevel reorder is disabled")

Signed-off-by: bart452 <bart_96@live.nl>

Change-Id: I17ea1d46cf1ba9bace70acd89a80143060f3bc31
img_from_target_files: Create md5 hashes for each file

Generate an md5sum-fastboot.md5 file that contains an md5 hash of each
file in the fastboot zip and store the file in the zip.

Change-Id: I19c2ac5a84fb21e965953d1dad0ebcbfd0b78d47
[DO NOT MERGE]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>
releasetools: Properly handle custom values for tools

Rather than writing these values to their own files, store them
in the target_files META/misc_info.txt. This way, we don't need to
download and parse through multiple files when using signing/release
tools.

Change-Id: I6f845fc055e4ef2ed4adf9628cca505e99b2a9fa
build: restore order to the universe... or at least non-clang renderscript includes

Change-Id: Ie6a4a0fd5c207ef55ac1797efa806d56d050fe68
build: add  -funsafe-loop-optimizations to unknows clang flags

- not supported by clang

Change-Id: I280d57a94b2d45b66ef6efaa42d28d822d9b2d2e
KTU84Q
build: Disable Tamil locale

With only 3% approved in CM project and 1% on AOSP project
in the past 5 months, this is a no-go

Change-Id: I0c9d31d5737a2191e9a425b9de98ca659071ad7d
Fix scripts that use the output of forall_vanir pwd, by not printing the pathlist too

Change-Id: I770afd9c3d047b587a0625bf5605f0829bae2420
Merge branch 'android-4.4.4_r2' into HEAD
First, use original cortex-a15 substitution, if no target_clang_version, else,
if msm-3.4 clang and krait TARGET_VARIANT_CPU, use optimized krait2
for the only 2 posibilities in that situation to be affcted:
cortex-a15 and cortex-a9

Change-Id: I1e8e57ac4a36465200e19e2293a75305edc0c2fe
BONE_STOCK: use 4.7 aosp toolchain

Change-Id: I24a5bce01bfe66bc86fc02e520c4a6abe61eadf2
BONE_STOCK implies aosp kernel toolchains

Change-Id: I8e1ef6f69c4be0b92ce257ad1fe75c7b8806f4fc
Fix internal compiler error when compiling w/ arm-linux-androidabi-4.7

Change-Id: Ie2934704302bdfe3d982042173e05ba34dad3213
Omit some sketchy cflags when BONE_STOCK is defined

this should be a NO-OP when BONE_STOCK is not defined

Change-Id: Ic1474b4a87ad604bb44b0fbf74de82923c83039a
while(build) derp();

Change-Id: I9423e2cf5cd3a013d6f32a57c24961b07cd5338b
build: add gcc 4.9 to the barrier

Change-Id: Ic92b79bb6308810e5ba71135447ca7b62fb1a6e7
Add a phony rule to pump out a stand-alone recovery.img

Change-Id: Ib08052900669dcbb85dd90630ffe0a216cabed75