Bootstub: Build $(PRODUCT_OUT)/bootstub from sources

BZ: 98212

Build the bootstub from the available sources and place the result in
out/target/product/*/bootstub for use by the mkbootimg.

Optimize code generation for size to fit into the 4096 bytes and check
for actual size to avoid silently truncating the code.

Change-Id: I1b93b08a55ebcc1dc6e4ddfcbc2939c1a52b581c
Signed-off-by: Olivier Fourdan <olivier.fourdan@intel.com>
Reviewed-on: http://android.intel.com:8080/100248
Reviewed-by: Fert, Laurent <laurent.fert@intel.com>
Reviewed-by: Tinelli, Vincent <vincent.tinelli@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
1 file changed