kernel.mk: Include triplet when setting custom toolchain

This allows using the arm-linux-androideabi- triplet when building
the kernel with a custom toolchain.

Example:
TARGET_KERNEL_CUSTOM_TOOLCHAIN=arm-eabi-4.7/bin/arm-eabi-

or

TARGET_KERNEL_CUSTOM_TOOLCHAIN=arm-linux-androideabi-4.7/bin/arm-linux-androideabi-

Change-Id: Ia4f026e8d23ac909258048605d1bd7a591686c77
Signed-off-by: Rob Beane <robbeane@gmail.com>
Add some AOKP "flare" when flashing

Change-Id: I26cdc70df56fa2a15da46d239703ec8c44c4b7c3
Fix use of Custom releasetool

Change-Id: I33c9d723a29c25789e01c4247fc05f8a917f20f2
Fix determination of java version

The script requires the java version to be on
line one of the output of `java -version`.
If you use _JAVA_OPTIONS to inject parameters
to each JVM, that will produce an output before
each VM is started, and the script won't be able
to find the java version, since `head -n 1` now
returns the wrong line. Grep for 'version' instead
to always get the right line from the output.

Change-Id: Iaf2798ba805d1b289b7e82239113b99479250dd8
Signed-off-by: Tim Roes <mail@timroes.de>
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
Merge remote-tracking branch 'aokp/jb-mr1' into jb-mr1
Revert "Add some AOKP "flare" when flashing"

This reverts commit 66adf07d33a0ab72aada2db8cd67ba54d2539d56.