Currently, wic EFI images dont' end up with startup.nsh, so the user has to type in the correct bits into the EFI command-line, which isn't very user-friendly. mkefidisk.sh in oe-core writes it for us, but we don't get it for wic images. Rather than hardcoding it into wic, lets deploy it and let wic grab it from there and drop it into the boot partition.
Initially, I had thought to do this in the recipes, but bootimg-efi doesn't pull IMAGE_BOOT_FILES from DEPLOY_DIR_IMAGE, it pulls from HDDDIR, so the bbclasses will have to do it instead. IMO we should divorce bootimg-efi from image-live/bootimg entirely and have it just pull from DEPLOY_DIR_IMAGE. It already duplicates the bootloader config file generation, so it should just do the rest as well, but we can improve that as a subsequent task. For now I'm altering the grub-efi and gummiboot classes to write startup.nsh to hdddir for non-iso for wic to use, and patching bootimg-efi to grab it if it's available.
Sent to the oe-core list for review.
Merged to oe-core: - https://github.com/openembedded/openembedded-core/commit/ec8dc34f974ddda420bddbd195fb344e3db46cab - https://github.com/openembedded/openembedded-core/commit/43ca968c5af129a990625923bc28131b8701386d - https://github.com/openembedded/openembedded-core/commit/aa215c12d729c001ad3b8b98a7e203a9ad192211