build: allow use of openjdk and other versions of make

Change-Id: I2e3c7f89ce51888afb9cda30eeaf6d757b057e2e
build: Realign product libraries with corresponding applications

VideoEditor requires a build to call the full_base, but the libraries
are called in generic_no_telephony. This patch places the library
packages in the same product specification as the application using
them.
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>

Conflicts:
	core/config.mk
build: Add support for TARGET_EXTRA_C{,PP}FLAGS

Add support for setting TARGET_EXTRA_C{,PP}FLAGS in board configs.
This can be used to set compiler flags for a board that break other
boards, such as -march=cortex-a9 or -DUSE_CUSTOM_EXTENSIONS_FOR_XYZ

Change-Id: I0efd4e37578bf6d239bf56dfeeaaed44840ee3af
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	core/combo/TARGET_linux-sh.mk
Revert "Fixed typo"

This reverts commit a92dced1336198fb79aafb7baf7685e29fb00f40.
Revert "Fix build."

This reverts commit ed66a3012fc8548d2d94b70b4faeefc23a25e53b.
Revert "build/core: Apply more compiler optimizations"

This reverts commit 41a4f447762b8b8c30c22af056a3d669165db3d6.
Revert "Optimize for Size"

This reverts commit e66b7b23fff15837f512afa768e9d6b04e084618.
Revert "Fix derp"

This reverts commit 61c56c52a9d919a5c11ba883559c2fde423f4d98.
Revert "Some enhancements"

This reverts commit 9370897a143e2b1ebeae82b069d80d6f357693ee.
Revert "Freedom to use any GCC Version"

This reverts commit df26436c8c15cd7f76f80a11b11f04858efb76c7.

Conflicts:
	CleanSpec.mk
	core/dumpvar.mk
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>

Conflicts:
	core/combo/TARGET_linux-arm.mk
	core/combo/select.mk
build: Don't add -fno-strict-aliasing to HOST compiler flags

Change-Id: I07eef86f11ec3761e0922855cb6ff881c2773966
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	core/combo/select.mk
build: Explicitly disable -Werror=strict-alising for HOST builds

Change-Id: Ib1e834951196ab3ea6acbe47c27eebe5633f55d2
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Add option to disable strict-aliasing optimizations

This is useful for builds that pull in unmodified AOSP repositories
that can't be compiled with strict-aliasing compliance enabled

Change-Id: I0599127b1e113c0799dd8fa92db00b989ebc9bd3
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	core/combo/select.mk
Revert "build/core: Use better default compiler flags"

This reverts commit 9c83953aea1924516c7bbee9c8a481b4c334c0a8.

Conflicts:
	core/combo/select.mk

Conflicts:
	core/combo/select.mk
Option to use Linaro's compiler flags (see 9c83953)

To enable: export USE_LINARO_COMPILER_FLAGS=yes

Set LD flags to something safe by default.

Original commit: https://github.com/pbeeler/android_build/commit/f54beb181365ac0a1659e9404670789c3d81e578

Conflicts:
	core/combo/TARGET_linux-arm.mk
Print optimizer options
Squash fix from linaro

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