Re: [PATCH v2] efi: libstub: add support for the apple_set_os protocol

Lukas Wunner
2024-07-01T07:44:23Z

On Mon, Jul 01, 2024 at 09:30:34AM +0200, Ard Biesheuvel wrote:
> Assuming that Intel Macs implement the EFI SMBIOS protocol, reusing
> the existing pieces should be rather straight-forward. Something like
> the below should work in that case (whitespace damage courtesy of
> gmail)
>
> Note that the smbios.c libstub source file needs some changes to
> build correctly for x86 with CONFIG_EFI_MIXED=y, but I can take care
> of that.

Orlando, Aditya, could you test Ard's patch with CONFIG_EFI_MIXED=n?

> +static bool apple_match_product_name(void)
> +{

Maybe something like apple_has_dual_gpu() ?