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

From: Aditya Garg
Date: Mon Jul 01 2024 - 04:03:15 EST




> On 1 Jul 2024, at 1:23 PM, Aditya Garg <gargaditya08@xxxxxxxx> wrote:
>
> 
>
>>> On 1 Jul 2024, at 1:21 PM, Ard Biesheuvel <ardb@xxxxxxxxxx> wrote:
>>>
>>> On Mon, 1 Jul 2024 at 09:44, Lukas Wunner <lukas@xxxxxxxxx> wrote:
>>>
>>>> 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?
>>>
>>
>> Yes, please test so we can check whether Intel Macs expose this
>> protocol in the first place.
>
> Sure

IIRC, t2 macs do not support SMBIOS, but I'll test this anyways.