build: Add chromium prebuilt support to envsetup.sh && The core Makefile

This adds a chromium_prebuilt function to envsetup.sh that is invoked by lunch to check
whether the chromium prebuilts are up-to-date or not. If not, it will be built from source
and then the new source built version will be pulled during brunch/mka bacon to become the
new prebuilts for future builds.

This is all opt-in through the USE_PREBUILT_CHROMIUM flag. Without it being set to 1,
none of this would be ran, and regular operations will go on.

PS13:
-use export TARGET_DEVICE
-replace git -C with params compatible to old git versions

Change-Id: I40f8c8dbd2a8a84a5c1b9f47ee04180a71ef4e07
add function to generate AOKP sdk

Signed-off-by: Arnav Gupta <championswimmer@aokp.co>

Conflicts:
	envsetup.sh

Change-Id: Icc5510727a8528867b1356df8decf72052a84219
Merge "build: Add chromium prebuilt support to envsetup.sh && The core Makefile" into kitkat
colorize non-fatal javac stderr yellow (and actually display it... at all)

woops!

Signed-off-by: nuclearmistake <nuclearmistake@gmail.com>
Change-Id: I984f428022a68a825aa041866e8d459bd6611f71
Optimize Clang

* Use -O3 and disable warnings.
* Make it optional so device maintainers can choose if they want to use it or not.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Change-Id: I984f428022a68a825aa041866e8d459bd6511f72
Add Linker Optimizations

* Make these optional as well as the Clang optimizations.
* Enable using OPTIMIZE_LINKER=y to BoardConfig of your device.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Change-Id: I984f428022a68a825aa041866e8d456bd6411f79
Revert "Optimize Clang"

This reverts commit 5e41f9f715bd71b85f582bee72afca6e8385368e.

Change-Id: I6edbe08822fed910ce6455fe7c4564c166a0ce75
Merge pull request #1 from LiquidSmooth/kitkat

source is uptodate