Make the kernel image format parametric instead of a chain of if/elses

Change-Id: I54bfcdecb8647f7bcf744e72b2de19fcf4e4e7ac
core_base: Remove "Home Sample"

Change-Id: I690ab7d65fe02c0771c796d37d15f9ef857daaaf
Need this