Re: [PATCH 3/6 v2] efi_loader: Introduce helper functions for EFI

2021-03-14 Thread Heinrich Schuchardt
On 3/13/21 10:47 PM, Ilias Apalodimas wrote: A following patch introduces a different logic for loading initrd's based on the EFI_LOAD_FILE2_PROTOCOL. Since similar logic can be applied in the future for other system files (i.e DTBs), let's add some helper functions which will retrieve and parse

Re: [PATCH 3/6 v2] efi_loader: Introduce helper functions for EFI

2021-03-14 Thread Heinrich Schuchardt
On 3/13/21 10:47 PM, Ilias Apalodimas wrote: A following patch introduces a different logic for loading initrd's based on the EFI_LOAD_FILE2_PROTOCOL. Since similar logic can be applied in the future for other system files (i.e DTBs), let's add some helper functions which will retrieve and parse

Re: [PATCH 3/6 v2] efi_loader: Introduce helper functions for EFI

2021-03-14 Thread Ilias Apalodimas
On Sun, Mar 14, 2021 at 09:01:48AM +0100, Heinrich Schuchardt wrote: > On 3/14/21 8:34 AM, Ilias Apalodimas wrote: > > Hi Heinrich, > > > > On Sun, Mar 14, 2021 at 08:31:20AM +0100, Heinrich Schuchardt wrote: > > > On 3/13/21 10:47 PM, Ilias Apalodimas wrote: > > > > A following patch introduces a

Re: [PATCH 3/6 v2] efi_loader: Introduce helper functions for EFI

2021-03-14 Thread Heinrich Schuchardt
On 3/14/21 8:34 AM, Ilias Apalodimas wrote: Hi Heinrich, On Sun, Mar 14, 2021 at 08:31:20AM +0100, Heinrich Schuchardt wrote: On 3/13/21 10:47 PM, Ilias Apalodimas wrote: A following patch introduces a different logic for loading initrd's based on the EFI_LOAD_FILE2_PROTOCOL. +/** + * efi_get_

Re: [PATCH 3/6 v2] efi_loader: Introduce helper functions for EFI

2021-03-13 Thread Ilias Apalodimas
Hi Heinrich, On Sun, Mar 14, 2021 at 08:31:20AM +0100, Heinrich Schuchardt wrote: > On 3/13/21 10:47 PM, Ilias Apalodimas wrote: > > A following patch introduces a different logic for loading initrd's > > based on the EFI_LOAD_FILE2_PROTOCOL. > > +/** > > + * efi_get_file_size() - Get the size of

Re: [PATCH 3/6 v2] efi_loader: Introduce helper functions for EFI

2021-03-13 Thread Heinrich Schuchardt
On 3/13/21 10:47 PM, Ilias Apalodimas wrote: A following patch introduces a different logic for loading initrd's based on the EFI_LOAD_FILE2_PROTOCOL. Since similar logic can be applied in the future for other system files (i.e DTBs), let's add some helper functions which will retrieve and parse