19 Apr, 2016

1 commit

  • The payload gets information on where it got loaded from. This includes
    the device as well as file path.

    So far we've treated both as the same thing and always gave it the device
    name. However, in some situations grub2 actually wants to find its loading
    path to find its configuration file.

    So let's split the two semantically separte bits into separate structs and
    pass the loaded file name into our payload when we load it using "load".

    Signed-off-by: Alexander Graf

    Alexander Graf
     

16 Mar, 2016

1 commit

  • EFI payloads can query for the device they were booted from. Because
    we have a disconnect between loading binaries and running binaries,
    we passed in a dummy device path so far.

    Unfortunately that breaks grub2's logic to find its configuration
    file from the same device it was booted from.

    This patch adds logic to have the "load" command call into our efi
    code to set the device path to the one we last loaded a binary from.

    With this grub2 properly detects where we got booted from and can
    find its configuration file, even when searching by-partition.

    Signed-off-by: Alexander Graf

    Alexander Graf
     

25 Jan, 2016

1 commit

  • Now that they are in their own directory, we can remove this prefix.
    This makes it easier to find a file since the prefix does not get in the
    way.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Acked-by: Stefan Roese
    Acked-by: Przemyslaw Marczak

    Simon Glass