Hi,
René Rebe wrote:
> Instead of compiling grub2
> once, we need to compile it two, or three times over and over again to
> configure, and build it for all the legacy pc, efi32 and efi64.
I see. Each of the configure runs in Debian buildd logs uses exactly
one combination of --with-platform and --target.
But the configure runs all happen before the first compilation activity.
So i would not consider this a duplication but rather combination of
variations for different firmwares. Of course, the compilation job gets
bigger with each variation that gets added.
> I might be tempted
> to skip efi32 in the hope it was not used much,
Small notebooks and tablets without CSM, iirc from lurking at mailing lists.
> but then, *sigh* I have this vintage, 1st gen Apple stuff, … :-/
Vladimir Serbinenko contributed HFS+ production code to libisofs, so that
xorriso can write HFS+ metadata, bless /System/Library/CoreServices/boot.efi,
and produce an Apple Partition Map.
The source code in util/grub-mkrescue.c shows that HFS+ is created
if (source_dirs[GRUB_INSTALL_PLATFORM_I386_EFI]
|| source_dirs[GRUB_INSTALL_PLATFORM_X86_64_EFI]
|| source_dirs[GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275])
and that blessing happens
if (source_dirs[GRUB_INSTALL_PLATFORM_I386_EFI]
|| source_dirs[GRUB_INSTALL_PLATFORM_X86_64_EFI])
The file img_mac="boot.efi" gets composed by grub-mkrescue.c from the EFI
startup programs img32="bootia32.efi" and/or img64="bootx64.efi":
if (source_dirs[GRUB_INSTALL_PLATFORM_I386_EFI]
&& source_dirs[GRUB_INSTALL_PLATFORM_X86_64_EFI])
grub_util_glue_efi (img32, img64, img_mac);
else if (source_dirs[GRUB_INSTALL_PLATFORM_X86_64_EFI])
grub_install_copy_file (img64, img_mac, 1);
else if (source_dirs[GRUB_INSTALL_PLATFORM_I386_EFI])
grub_install_copy_file (img32, img_mac, 1);
For Macs which need HFS rather than HFS+, you will have to resort to
mkisofs or genisoimage. Debian does this for its "powerpc" ISOs.
Have a nice day :)
Thomas
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2