Add TARGET_GCC_VERSION

Default to 4.6, but can overwritten to something else in
prebuilts/gcc/$os/$arch/$arch-linux-android*-$ver

Change-Id: I16f99d642b8ff8e831d392261a0c536041107051
[ARM] Extend the usage of TARGET_GCC_VERSION for gdb and arm-eabi-*.

In the future to upgrade the gcc version we just need to edit one
line in core/config.mk.

Change-Id: I01bb38c38f2388913bb7369aa4b2da480411dfbe
Export TARGET_GCC_VERSION as an env variable.

Have it referenced by the adbs tool to pick the specified toolchain.

Change-Id: I23df88946254a55d0749d6753e54559faf33e121
x86: enable FORTIFY_SOURCE

Enable FORTIFY_SOURCE for Android x86.  This adds certain security
protections to Android programs, checking for common programming
mistakes and buffer overflows.

FORTIFY_SOURCE protections have been enabled for ARM since
a46c480e43cc61d0190569684f0a1e53a5da75b6 (Jun 4th 2012)

Change-Id: Idae6f93d37ddae605088867cd3029f12632456e1
Use GCC 4.7 from google

Thanks aaronpoweruser for saving me hours of fixing errors myself.

Change-Id: I85cdd49a802bc9577e40bccbcfa2b08f3c76a472
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>
GCC 4.7 O3 and aliasing Optimizations

Requires http://gerrit.sudoservers.com/#/c/4568/ to build.

Change-Id: Ic416df6a593d1094deaac5a2261b625f734ce404
Add strict_aliasing.
Re-add AOKP LatinIME

Change-Id: I948ea48d51c5cae409adf9bf90fd99f2fba679c4
build/core: Build in ISOC++11 mode if possible

Add -std=gnu++11 if the compiler supports it

Change-Id: Ied8b4487263172b678fd2912cfe428187b2edf95
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Add board platforms to qcom_utils

Change-Id: I85458167bf2b9c04b029d09b87bf791ff4cfd04d
kernel.mk: set KERNEL_OUT properly

It was hardcoded to $(ANDROID_BUILD_TOP)/$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
which wouldn't exist if OUT_DIR_COMMON_BASE was set to use another dir
(e.g. ramdisk)

Fix it so that it now points to $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
if OUT_DIR is not out

Change-Id: I1bf767d86548e41270d9cbb8f0c00512708501c5
envsetup: set OUT_DIR to an absolute path always

OUT_DIR was set to $(TOPDIR)out previously,
but $(TOPDIR) was null, so it was a relative path.
This broke releasetools, inline kernel building, etc
since they require absolute paths.
Fix it so that it is set to $(shell readlink -f .)/out
if $(TOPDIR) is null.

Also remove hacks which checked if (OUT_DIR) was out
and changed it to $(ANDROID_BUILD_TOP)/out to workaround
the aforementioned problem.

Change-Id: I459a3b1325a1bbea0565cd73f6acf160d4ed9b39
build: work around missing readlink -f on Mac

Change-Id: I5d56366cf33a2b02f1886c87815d00cff279779d
qcom_utils: Only use if compiling kernel from source

	* If using prebuilt kernel KERNEL_OBJ/usr will not exist, thus
	  build will complain of dir missing during module compilation

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
ifndef TARGET_USE_PREBUILT_KERNEL
clockwwork recovery build fixes
fix BOARD_CUSTOM_BOOTIMG_MK
SignApk: perform the whole file signature in a single streaming pass.

Change-Id: Ia29fbc9246254028c75cb57c54cf82ac124c44d0
SignApk: setLevel(9) should be called on APKs and not OTAs.

Change-Id: I3ca668461b838a415ecedb81a995ad530869b10b
SignApk: perform the whole file signature in a single streaming pass.

Change-Id: Ib56918adad067940a8e14c41c61b42b953504183

Author:    Koushik Dutta <koushd@gmail.com>