mkimage: Pass layout to mkimage_generate_elfXX rather than some fields.

This allows easier extension of this function without having too long of
arguments list.
This commit is contained in:
Vladimir Serbinenko 2017-05-08 17:32:15 +02:00 committed by Vincent Batts
parent 5696d56d33
commit 587d1e78c9
3 changed files with 24 additions and 23 deletions

View file

@ -1638,10 +1638,10 @@ grub_install_generate_image (const char *dir, const char *prefix,
target_addr = image_target->link_addr;
if (image_target->voidp_sizeof == 4)
grub_mkimage_generate_elf32 (image_target, note, &core_img, &core_size,
target_addr, layout.align, layout.kernel_size, layout.bss_size);
target_addr, &layout);
else
grub_mkimage_generate_elf64 (image_target, note, &core_img, &core_size,
target_addr, layout.align, layout.kernel_size, layout.bss_size);
target_addr, &layout);
}
break;
}