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/core: Forward-port hook for device specific tasks

Added generic hook for loading device specific tasks.

Change-Id: I6216195edd6a43e940b3d254256092aca98ca58d
Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build/core: uboot support

if TARGET_BOOTLOADER_TYPE is set to uboot, build uImage and uInitrd
rather than kernel and ramdisk.img

Based on older 2.3.x patches from Patrik Ryd <Patrik.Ryd@linaro.org>

Change-Id: I05d34b5cf7ad68d1342f110b5b6cf8c4cae02e6a
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
product/core: Install busybox, lrzsz, ffmpeg, x264

Change-Id: I92e750e8dace870ff39a7bae3633328b1be14983
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: 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: Use better default compiler flags

Use -O3 for the compiler, -O2 for the linker

Change-Id: Ib9c3cd6d6ddf16c8bd20149a051ff2c17491a29d
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>
definitions.mk: Don't fail if xmllint isn't installed

This is a workaround for xmllint currently not being installed on the
build slaves. It should be reverted when this is fixed, as it eliminates
a check for sane code.

Change-Id: I46eeadebd931ee1b6812a9eb933ee4b56ebd16a7
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Add TARGET_OMIT_DOCS setting to avoid generation of javadocs

Some boxes, including android-build.linaro.org's build slaves, are too
memory starved to handle javadoc generation - so we need a way to turn
it off...

Change-Id: I8a85ae27ef9a6c00b88c2c8ae378d0e0b54596f8
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Revert "Add TARGET_OMIT_DOCS setting to avoid generation of javadocs"

This reverts commit 657a6152270854e361fab74e96f7217c5fb5c20f.
Let's see if this fixes JB builds in android-build.linaro.org...
build: Make sure boot.img depends on the kernel having been built

Change-Id: Ia439ed4079ef912c42aa15cac995741fd6071f1e
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
target/product/core.mk: Add aibd and aib to PRODUCT_PACKAGES.

Add the AIB daemon to be built on all targets.
Also add the client to be built on the host.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Change-Id: Id02827d74ed4e569a5e4d701d75ef1913893466b
build: Build fs_get_stats even for TINY_ANDROID

We need fs_get_stats if we're using u-boot because it's used
during tarball creation.
Build it even for TINY_ANDROID (unless TARGET_BOOTLOADER_TYPE == fastboot)

Change-Id: If9ed3b63699b9f6c04a08b7b131a00b3a856c946
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.

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>