CCACHE: use variable to define custom ccache path

This patch will allow to use an environment variable to
define a custom path where ccache is located.

Example:
export CUSTOM_CCACHE_PATH=/usr/bin

Basically it is an easy way to use a newer ccache version than
the one provided in prebuilts.

Personally I use ccache 3.1.6 which has the direct mode which is
a little faster than the preprocessor mode in 2.4 because it
doesn't need to run the preprocessor over each c/c++ file.

PS2: remove unnecessary output

Change-Id: I52c562a68b67e215258d036774e06fa1fc654e03
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
build: Add AOSP, CAF and Linaro remote commands

Change-Id: Ic3899e25ab2095456f454ddfd3abe0dae4c77926
build/core: Don't use -fno-strict-aliasing

Don't use -fno-strict-aliasing: It's no longer needed.

Change-Id: I7b6e9524197dc152b57a8d1900dd6d7f9fe3452d
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Use -Wno-error=strict-aliasing for the HOST compiler

Since everyone uses his own host compiler, and there's still a lot
of broken compilers that report false positives (gcc <= 4.5) around,
use -Wno-error=strict-aliasing for the HOST compiler.

If things are broken on the host side, we'll notice at build time
anyway.

Change-Id: I1a7db826866c4342d168c1efa7971a988d199d3a
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Revert "build: Use -Wno-error=strict-aliasing for the HOST compiler"

This reverts commit 074b9cc5c5308afeb0b83c68a7a1393edb5caead.
The commit prepended -Wno-error=strict-aliasing and was overridden.
Will commit a proper fix.
build: Don't add -fno-strict-aliasing to HOST compiler flags

Change-Id: I07eef86f11ec3761e0922855cb6ff881c2773966
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Explicitly disable -Werror=strict-alising for HOST builds

Change-Id: Ib1e834951196ab3ea6acbe47c27eebe5633f55d2
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build/core: Add linaro_compilerchecks.mk

Add linaro_compilerchecks.mk, allowing to run some checks on the
compiler version and supported flags before setting them

Change-Id: I96e1277e74c0ea3457677bef39644aaece01f653
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build/core: Include linaro_compilerchecks.mk

Include linaro_compilerchecks.mk in core/config.mk to allow the macros
to be used in board configs

Change-Id: I3a0dfd0a3a1c09961e43ef8c2f3cbe50b8c00e20
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Don't work around cortex-a8 issues when targeting a9 only

Don't work around cortex-a8 issues when other compiler flags
show we want to target cortex-a9 only

Change-Id: If5a077243fc15298fbcbe2ffc857b5e961dd29da
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build/core: Fix build errors

- Include task hooks only if they exists
- Fix typos

Change-Id: Ide3b1bd0bac050da5b96d1e9a0dabd55fbf675fe
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Make cortex-a8 workaround depend on TARGET_ARCH_VARIANT_CPU

Change-Id: If83f9a81b77e76d0dcc0b9dd4f78b00e67b37a9b
build: Set toolchain path to Linaro 4.6-2012.07

Change-Id: Icbe9e35013f32901fa761045bb4ea445b65b18c0
kernel.mk: Use prebuilts for custom toolchain path

Change-Id: Id35481902fe7353ba77e13fbc8979e83758e4574