Lots of Optimizations from OptiPop

Remove Annoying Goldfish Stuff

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Add Pipe Flags

* Trying to speed up build a bit

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Optimize Clang

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Add -O3 to CPPFLAGS

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Remove Unsupported Flags

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Missed 2

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
build in colors: Install outputs in blue/yellow [basic ics version]

"target prefix:" in yellow
"Install: file" in cyan

should be in a single command line else there are sync problems
in multithread (-j X)

These colors can be tuned in core/Makefile if you use a white terminal.
can be disabled with "export BUILD_WITH_COLORS=0"

Only the most important output is colored to reduce ics merge problems

Change-Id: I0e585079fde6900799ef209367a523d94a51cda5

Colors: add more colors to final build steps

also fix releasetool echo and visible recovery echos

Change-Id: Icf5d88468572f935610c544bf1d5d356ec9870d3

build in colors: host C/C++

Change-Id: Ic415cab53a2efa104c9d4b31ddbe8c8eb74e493d
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/Makefile
build-with-colors: moar colors

- rename CL_PFX and CL_INS to better match the
  colors they show.
- add more colors.

Output of:
- most host stuff is yellow
- most target stuff is green
- installing/copying files is cyan
- import/export includes and notice files is cyan
- bootimage/recoveryimage is cyan
- and some more colors in many places ;)

Change-Id: I5532afa4ba608e0a7c408516dc9f912f9ca389f7
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/Makefile
Thumb -O3 + Optimizations

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Try to Fix

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
No Strict Aliasing

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Remove Unknown Arguements

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Disable Clobbered Error

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Disable Strict-Overflow

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Optimize CPPFLAGS

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Remove Unrecognized Options

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Update Release CFLAGS

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Remove Unknown Flags

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Add Some CPPFLAGS to select.mk

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Remove frename-registers from CPPFLAGS

* Not recongnized

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Fix Cyanoderp

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Update host linux toolchain to gcc 4.8

This patch ensures the build system uses the prebuilt gcc-4.8 toolchain
when building host Linux binaries, instead of the gcc-4.6 one.

Change-Id: I7b449650714ba4314a780827e0243f2af40ec82c
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level.

LPAE indicates better instructions can be used when atomicity guarantees are
needed. However, LPAE's presence isn't advertised by clang/GCC. We fake an
ARM feature to advertise its presence on architectures where it is.
Also, add a TODO documenting that cortex-a15 is not the correct CPU variant
for krait.

Change-Id: I02a1248025c32d94eca0bc8a249dc524f1ac9c36
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
clang: add more flags specific only to GCC

* I use these flags so they should be included in the list.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "Remove Unknown Flags"

This reverts commit 4130369448686db246401573ae1a5d5e89200500.
Revert "Remove Unrecognized Options"

This reverts commit 539903376e6dc8a569595bb7f8cf318f41fe273d.
Add Back These Flags

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Add Back Options to Select.mk

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level."

This reverts commit 2fe0e4847ac322a326d9e1c0a24b7a994c59ec44.
Revert "Specify -mcpu=krait for clang"

This reverts commit 64d8bca539205e5fb40d7ebf7eb509585466ddd8.
Revert "Add Back Options to Select.mk"

This reverts commit 7f111183cde91211c3fdcdf0e8c7f0a0635c4e2d.
Try Allowing loop unrolling on thumb

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "Revert "Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level.""

This reverts commit fbd632765ef20a003c22559e07b02e336fdcf055.
Revert "Try Allowing loop unrolling on thumb"

This reverts commit 8228258d60556bb555cefdc0ba938943d01e5297.
Fix Derp from original loop unroll commit

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Merge remote-tracking branch 'SlimRoms/lp5.0' into lp5.0
Replace Music App with Apollo

Change-Id: I2a565c9b6d156b56198294c2b41889534a0b0abe
Merge remote-tracking branch 'SlimRoms/lp5.0' into lp5.0

Conflicts:
	core/Makefile
	core/combo/arch/arm/armv7-a-neon.mk

Change-Id: If898d97df8f4b0850569a42002b6cb89e4b12e52
Use New 4.8 Host Toolchain from Google

* While we are fixing SM Host Toolchains let's use the latest Google.

Change-Id: I1d5103c624e8e5bb93f8a46038cfd57263c69b76
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
pathmap: Point QC HAL pathmaps directly to the source

Directly map to the actual HAL directory, including the
board platform. This lets project-path-for point directly
to the respective HALs.

Change-Id: Ic4ed61bbdea9d0b5683502bf84a8410e76858527
"LRX21U"
"LRX21V"
build: set qcom media variant to root path

Change-Id: If7d0dc3fc1789b14f5272be46c13a9146575ce79
Add Graphite Flags

Change-Id: Ibd735e1f90637f348a05b190f0ac5a6dc0c1dac3
Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Colorize javac errors

You know those multi-line ones that are frequently interspersed with other buld output?
The ones that don't even have the word "error" in them to search for?

This makes them red.

ps2: fix jar_check failures cause by leaving empty stderr files in intermediates dirs
     this is probably not the best place to store stderr before colorizing it if javac
     exits non-zero, but it seems much lighter than mkdiring a bunch of temp directories
     or using sed to mangle the paths to point to per-intermediates directory unique
     temporary file names

Change-Id: I3b9b7d8a0c76958588ac1603b6742987d6dde54c
Signed-off-by: nuclearmistake <nuclearmistake@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
colorize non-fatal javac stderr yellow (and actually display it... at all)

woops!

Signed-off-by: nuclearmistake <nuclearmistake@gmail.com>
Change-Id: I984f428022a68a825aa041866e8d459bd6611f71
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
build: Fix some colored build issues

 * Fix some broken lines in definitions.mk
 * Finish adding colors to product-graph.mk

Change-Id: I235a60c967b1f10ec6dd1cac25740badbd3b64c9
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Colorize build success/failure message.

Change-Id: I8901689876e65f5b72050c40e1580f167e49c2b0
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Remove libdvm dex preopt support.

libdvm is dead.

Change-Id: Ib8571c007f8a9f0e0eaf5c61b5d2e416b2d95089
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Strict Aliasing

* We'll need to patch the repo to get this to build.  Let's see how far we get without the help of linaro

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Recovery: remove wiping of res folder

The rm -rf of the res folder wipes out all of the TWRP theme and
images. Remove this so that TWRP will work properly.

Change-Id: I27c372d53eaae3cc8b476a909c2d3f3fc4fcb558
Add graphite flags

Change-Id: I90bd416e800936b2130b82246fe0fd047774d466
Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Merge remote-tracking branch 'SlimRoms/lp5.0' into lp5.0
More of Chets optimizations of sweetness

Strict Aliasing on select.mk too

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Clang: Ignore More Flags

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Filter Out More

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Filter Out Clang on Mips 2

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Cleanup Thumb Flags

Change-Id: Ie51d9a14597b928a2d720ba134236afd15b76189
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Restructure Thumb

* And add cc callinng

Change-Id: I07c3833309a14d1a45be2ac0b645c420753ff8ac
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
build: add back libjni_latinime.so

Change-Id: Ic0b8748354328eb1fd760181ffa0c919b63a33a9
build: Ensure /system unmounted at install start

Account for the possibility that a user has mounted system manually
before installing the FullOTA package.

Change-Id: I97d0540676a7ce98762545e76ecb1a7f6335d204
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Merge remote-tracking branch 'aow/lp5.0' into lp5.0

Conflicts:
	core/Makefile
	core/combo/HOST_linux-x86.mk
	core/combo/HOST_linux-x86_64.mk
	core/combo/TARGET_linux-arm.mk
	core/combo/arch/arm/armv7-a-neon.mk
	core/definitions.mk

Change-Id: Ifab40f67acef41e66fc04c16e66b71cb9b17a550