[PATCH v6 0/3] Boot variables management for removable media

Raymond Mao raymond.mao at linaro.org
Fri May 26 23:36:47 CEST 2023


Major changes:
1.Rename and move bootorder and bootoption apis from cmd to lib
  for re-use between eficonfig and bootmgr
2.Changes for complying to EFI spec §3.5.1.1
  'Removable Media Boot Behavior'.
  Boot variables can be automatically generated during a removable
  media is probed. At the same time, unused boot variables will be
  detected and removed.
3.The boot variables automatically generated for removable medias
  should be with short form of device path without device nodes.
  This is a requirement for the case that a removable media is
  plugged into a different port but is still able to work with the
  existing boot variables.

Raymond Mao (3):
  Move bootorder and bootoption apis to lib
  Boot var automatic management for removable medias
  Load option with short device path for boot vars

 cmd/bootmenu.c               |   2 +-
 cmd/eficonfig.c              | 408 +----------------------------------
 include/efi_config.h         |   5 -
 include/efi_loader.h         |  11 +
 lib/efi_loader/efi_bootmgr.c | 381 ++++++++++++++++++++++++++++++++
 lib/efi_loader/efi_disk.c    |   7 +
 lib/efi_loader/efi_helper.c  |  25 +++
 lib/efi_loader/efi_setup.c   |   5 +
 8 files changed, 436 insertions(+), 408 deletions(-)

-- 
2.25.1



More information about the U-Boot mailing list