Squash commits of Linaro

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>

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: Allow building with OpenJDK

My local builds with OpenJDK have been successful - no
reason to disallow it, let's go free...

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

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>

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

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

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Paul Beeler <sparksco@gmail.com>

build: Don't add -fno-strict-aliasing to HOST compiler flags

Change-Id: I07eef86f11ec3761e0922855cb6ff881c2773966
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Paul Beeler <sparksco@gmail.com>

build: Explicitly disable -Werror=strict-alising for HOST builds

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

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 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>
Signed-off-by: Paul Beeler <sparksco@gmail.com>

build/core: Add option to disable C++11 bits

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

full_base_telephony: Disable roaming by default

Roaming enabled by default can lead to nasty surprises
especially on builds that get flashed over and over again
(each time losing WiFi passwords...)
Better default to turning it off.

Change-Id: I71e3a432a4a221e1fb26b6c68198830fbb6705bd
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Squash commits of @rascarlo

add support for overriding build.prop settings

comment out the build date assert

Debugging TRUE

Dexpreopt FALSE

Signed-off-by: Paul Beeler <sparksco@gmail.com>
build: Allow building with OpenJDK v1.7

Ubuntu-12.10 ships with OpenJDK v1.7 and AOSP errors out if you try
to build it with JAVA version other than 1.6. Linaro Android build
with JAVA v1.7, boot tested on Origen 4412, seems to work fine.

Change-Id: I8ca783b48de80131f830139a33d8fc0aa92c562c
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.
Some changes added to compile and run with Java 6 and Java 7.

  - correction of errors with Javac 6:
    - target 1.5 and source empty.
  - correction of errors with Javadoc 7:
    - strange behavior when duplicate classes are given.

Change-Id: Ib814ede143f7799ef18e0fb1b733547519b8b0e5
Add standard method for enabling mfpu and mcpu code optimization

Signed-off-by: Paul Beeler <sparksco@gmail.com>
build: Enable Bionic optimizations on Cortex platforms

 * Enable the new NEON optimizations in Bionic when
   TARGET_ARCH_VARIANT_CPU is set.
 * NEON memcpy() optimization is disabled on A15 due to a regression.

Change-Id: I4862695812a70b75bdabc4398cb592157f3913c6
build: move bionic optimizations to NEON makefile

Change-Id: Idd495ddbb49f67fef5496456803263f8a23643c5
build: Relax Cortex CFLAGS

 * Always set march=armv7-a
 * Use mtune instead of mcpu. Bad code is generated on A15 otherwise.

Change-Id: Idf8ced8eb0e9d3d4676ca8ec69bf56aed5533bf4
Split to multiple bash commands.

This can fix the error "/bin/bash: Argument list too long", if we get a
really long apk list.
Bug tracker Link: http://code.google.com/p/android/issues/detail?id=38937

Change-Id: I72258125c4297dfd9f8f502a96dbfa5a08f3cc50
build libjni_pinyinime together with PinyinIME

PinyinIME needs libjni_pinyinime to work, so build them together.
Otherwise it FCs because the JNI lib is missing.

Change-Id: I5027fa588e5bc49636914ff5c8d305280aaa4936
Disable Pinyin and Openwnn IME's by default.
These two IME's are of poor quality and nobody actually uses them.
A device that caters to those markets may choose to enable these IME's,
They are more likely to instead install one of the better free IME's
from Android Market.

Change-Id: I33d8340dcae997fb37f00d841619353cf2835d30
Run zipalign after classes.dex is removed from the apk

If LOCAL_DEX_PREOPT is enabled.

Change-Id: Ie2a706fbb77bc31c9fdb01c8435819c5de97ea28
Compiler customizations

option:  Add SaberMod GCC 4.8 androideabi as a BoardConfig
To enable add USE_SABERMOD_ANDROIDEABI_48 := true
to your BoardConfig.mk of a SaberMod supported device

Signed-off-by:  Paul Beeler <sparksco@gmail.com>
Squash commits of SaberMod build scripts

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Squash commits for SaberMod optimizations

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Disable recovery flash
OTA package naming:  name := $(SM_VERSION)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Flash Print info Saber Mod:

Add contributors: @CyanogenMod @rascarlo @jarjar124
Update Java 1.7 message for SaberMod:

To install and use properly on Ubuntu 12.04+ reference my Guide on
@XDA
http://forum.xda-developers.com/showpost.php?p=36648289&postcount=19