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>