Modernize the genimage.sh script, add a 'hdimage' target and EFI support.

Signed-off-by: Ingo Molnar <mingo@kernel.org>