ota: Generate recovery-from-boot.p file

This may be wanted to update the recovery with system updates

Change-Id: Iacd41be7a8018cbc08b2606485d446756910f506
Change CM recovery install script filename [1/2]

This is part 1/2 to maintain backwards compatibility with CWM's
verify_root_and_recovery() function. CWM checks if install-recovery.sh
exists and has an executable flag set, then offers to disable the script
for the user. CM now controls this with the persist.sys.recovery_update
property which is configurable via settings, so we don't need to
double-check this.

This changes the name of the recovery install script to
install-cm-recovery.sh.

Change-Id: Ie08d428cfd092a1de10973ba5ffc326ccdb1a369
keys: avoid duplicating recovery keys

Setting PRODUCT_EXTRA_RECOVERY_KEYS duplicates the default key and
makes it so we can't set an extra key earlier in the build

Change-Id: I239d9994d9ad40b1779877ea2e89b55bd02e4c00
ota: Allow devices to skip generation of recovery-from-boot.p

* Not all devices have a real recovery partition, so those devices
  should skip this generation step.

Change-Id: I4abc3f92b879e6997e4874543ec9772c3179b1d0

Conflicts:
	core/Makefile
fix build
remove duplicate line
Revert "remove duplicate line"

This reverts commit b0f9427f82e8a9aaed3dbf25a8a902f68e4783ff.
Revert "fix build"

This reverts commit de9a90bd06ce7672866e801ed44a982a0e1f9571.
Revert "ota: Allow devices to skip generation of recovery-from-boot.p"

This reverts commit a50b766d54c972790226e060e9f2718d5ab70743.
ota: Allow devices to skip generation of recovery-from-boot.p

* Not all devices have a real recovery partition, so those devices
  should skip this generation step.

Change-Id: I4abc3f92b879e6997e4874543ec9772c3179b1d0
remove duplicate line
remove rr from zip package title
Makefile: fix build ota
Merge pull request #5 from ShevT/kitkat1

Makefile: fix build ota
gcc sm4.10
Add graphite flag -floop-flatten

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Move threads and graphite modules list to ARM:

Fixes compatability with BoardConfig.mk or simular

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Remove graphite restriction
Update graphite glags

USING_SABER_LINUX being set is a requirement for using graphite.

Now can add to BoardConfig.mk to disable device specific modules if needed.  Might be more useful for legacy devices.
Refresh build info

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Fix ARM toolchain building

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Move pthread and graphite modules list to vendor/psd (1/2)

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Move threads and graphite modules list to ARM:

Fixes compatability with BoardConfig.mk or simular

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Update graphite flags for >=gcc-4.8 and cleanup my code style to be more consistant with David's:

Disable graphite for HOST static libraries, HOST executables, HOST shared libraries and static libraries

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Various Build fixes:

-Fix debugging on user builds
-Use -Os (optimize for size) build flag for thumb, otherwise cpp files code size becomes huge and memory consuming
-Remove hacky gcc colors to kernel source AndroidKernel.mk (1/2)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Fix gcc freemdom:

Make build variables non-conditional
BoardConfig.mk/BoardConfigCommon.mk or simular variable table as follows:
    Defaults for ROM and Kernel toolchains are 4.8
    If no kernel ARM toolchain is defined default to ROM toolchain
    Set Android toolchain GCC_VERSION_AND := "enter gcc version here" (i.e. 4.9)
    Set Kernel ARM toolchain GCC_VERSION_ARM := "enter gcc version here" (i.e. 4.9)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Update flags with new memory optimizaions option

Patch set2: rewrite and remove unstable flag

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Revert "GCC Freedom"

This reverts commit a3d72e8f6ffc25e6730e8d32e968bcac6bd47e43.

This breaks build with gcc 4.9.  Regardless if TARGET_GCC_VERSION_AND and TARGET_GCC_VERSION_ARM is set
the rom still wants to use gcc 4.8

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Conflicts:
	core/combo/TARGET_linux-arm.mk
Update TARGET_linux-arm.mk

opps
Update TARGET_linux-arm.mk

If the flag -fstrict-aliasing is set to global use warning level three automatically.
cleanup TARGET_linux-arm.mk from last commit..

Fix derps
Fix flags in TARGET_linux-arm.mk...

This is a modified version of the original SaberMod code style
Add graphite support
Change to -O3 and add more flags
Fix build
Some compiler flags changes
Add the Custom Toolchain Triggers
GCC Freedom

Based on this commit: https://github.com/ModdedPA/android_build/commit/bb921bab55265e9494305747f3d2ac9cfc73f075