06 Dec, 2017

2 commits

  • Patch queue for efi - 2017-12-05

    Highlights for this release:

    - Dynamic EFI object creation (lists instead of static arrays)
    - EFI selftest improvements
    - Minor fixes

    Tom Rini
     
  • Commit f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot
    services") changed the internal EFI API header without adapting its existing
    EFI stub users. Let's adapt the EFI stub as well.

    Fixes: f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot services")
    Signed-off-by: Alexander Graf
    Reviewed-by: Heinrich Schuchardt

    Alexander Graf
     

04 Dec, 2017

2 commits


02 Dec, 2017

3 commits

  • Depending on your compiler, when compiling the hello world efi binary
    with -Os, gcc might think it's a smart idea to replace common patterns
    such as memory copies with explicit calls to memcpy().

    While that sounds great at first, we don't have any memcpy() available
    in our helloworld build target. So let's indicate to gcc that we really
    do want to have the code be built as freestanding.

    Fixes: bbf75dd9 ("efi_loader: output load options in helloworld")
    Signed-off-by: Alexander Graf

    Alexander Graf
     
  • Commit 884bcf6f65 (efi_loader: use proper device-paths for partitions) tried
    to introduce the el torito scheme to all partition table types: Spawn
    individual disk objects for each partition on a disk.

    Unfortunately, that code ended up creating partitions with offset=0 which meant
    that anyone accessing these objects gets data from the raw block device instead
    of the partition.

    Furthermore, all the el torito logic to spawn devices for partitions was
    duplicated. So let's merge the two code paths and give partition disk objects
    good offsets to work from, so that payloads can actually make use of them.

    Fixes: 884bcf6f65 (efi_loader: use proper device-paths for partitions)
    Reported-by: Yousaf Kaukab
    Signed-off-by: Alexander Graf

    Alexander Graf
     
  • Otherwise with GUID partition types you would end up with things like:

    .../HD(Part0,Sig6252c819-4624-4995-8d16-abc9cd5d4130)/HD(Part0,MBRType=02,SigType=02)

    Signed-off-by: Rob Clark
    [agraf: rebased]
    Signed-off-by: Alexander Graf

    Rob Clark
     

01 Dec, 2017

33 commits