21 Jun, 2019

1 commit

  • fatload command can be used to load the EFI payload since EFI system
    partition is always a FAT partition. Call into EFI code from do_load()
    to set the device path from which the last binary was loaded. An EFI
    application like grub2 can’t find its configuration file without the
    device path set.

    Since device path is now set in do_load() there is no need to set it
    in do_load_wrapper() for the load command.

    Signed-off-by: Mian Yousaf Kaukab
    Reviewed-by: Heinrich Schuchardt

    Mian Yousaf Kaukab
     

10 Apr, 2019

1 commit


20 Feb, 2019

1 commit


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

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