kernel.mk: set KERNEL_OUT properly

It was hardcoded to $(ANDROID_BUILD_TOP)/$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
which wouldn't exist if OUT_DIR_COMMON_BASE was set to use another dir
(e.g. ramdisk)

Fix it so that it now points to $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
if OUT_DIR is not out

Change-Id: I1bf767d86548e41270d9cbb8f0c00512708501c5

Conflicts:
	core/tasks/kernel.mk
SignApk: perform the whole file signature in a single streaming pass.

Change-Id: Ia29fbc9246254028c75cb57c54cf82ac124c44d0

Conflicts:
	tools/signapk/SignApk.java
SignApk: setLevel(9) should be called on APKs and not OTAs.

Change-Id: I3ca668461b838a415ecedb81a995ad530869b10b
SignApk: perform the whole file signature in a single streaming pass.

Change-Id: Ib56918adad067940a8e14c41c61b42b953504183

Author:    Koushik Dutta <koushd@gmail.com>
envsetup: set OUT_DIR to an absolute path always

OUT_DIR was set to $(TOPDIR)out previously,
but $(TOPDIR) was null, so it was a relative path.
This broke releasetools, inline kernel building, etc
since they require absolute paths.
Fix it so that it is set to $(shell readlink -f .)/out
if $(TOPDIR) is null.

Also remove hacks which checked if (OUT_DIR) was out
and changed it to $(ANDROID_BUILD_TOP)/out to workaround
the aforementioned problem.

Change-Id: I459a3b1325a1bbea0565cd73f6acf160d4ed9b39

Conflicts:
	core/tasks/kernel.mk

Conflicts:
	core/envsetup.mk