image.mk: add a separate step for building kernel images for LegacyDevice support