[PATCH 00/27] x86: efi: Various app improvements to support bootstd

Simon Glass sjg at chromium.org
Wed May 28 10:24:26 CEST 2025


This series makes a number of improvements to the EFI app. Mostly it
applies to x86 but the ARM version will share some improvements.

The main updates are:
- Improve linker scripts and options to detect missing symbols and
  remove unused code
- Enable bootstd and provide a default which can find an extlinux OS on
  EFI media
- Make the 32/64-bit apps more similar in terms of features and link
  script


Simon Glass (27):
  scripts: Tidy up build-qemu a little
  scripts: Change -k and -o options
  scripts: Update build-efi to support kvm
  scripts: Update build-efi to support booting an OS
  scripts: Update build-efi to allow showing the QEMU cmdline
  scripts: Update build-efi to support passing a root disk
  scripts: Update build-efi to support debugging with QEMU
  scripts: Update build-efi to allow firmware settings
  bootstd: Tidy up help for boot flags
  bootstd: Provide an option to scan any partition
  vbe: Avoid accessing TEXT_BASE if undefined
  efi: Use the correct driver for TPM
  efi: Allow disabling networking in the app
  efi: Rename the media device
  efi: Allow disabling the TPM in the app
  efi: doc: Use inline links for EFI app documentation
  efi: Add a bootdev for EFI media
  efi: Provide an easy way to debug with gdb
  x86: efi: Sync up the two link scripts somewhat
  x86: efi: Tidy up the link scripts
  x86: efi: Add a few dummy functions
  x86: efi: Avoid calling arch_setup_gd() from jump_to_copy()
  x86: efi: Drop relocate and physmem
  x86: efi: Enable --gc-sections to drop unused code
  x86: efi: Drop some unused options
  x86: efi: Enable bootstd
  x86: efi: Add various useful options

 arch/x86/config.mk                 |  2 +-
 arch/x86/lib/Makefile              |  3 ++
 arch/x86/lib/elf_ia32_efi.lds      | 29 ++++++------
 arch/x86/lib/elf_x86_64_efi.lds    | 30 +++++-------
 boot/vbe_common.c                  |  2 +-
 cmd/bootflow.c                     | 10 +++-
 common/board_f.c                   |  2 +-
 configs/efi-x86_app32_defconfig    | 26 +++++------
 configs/efi-x86_app64_defconfig    | 24 ++++------
 doc/develop/uefi/u-boot_on_efi.rst | 48 +++++++++++++++++---
 doc/usage/cmd/bootflow.rst         | 15 +++---
 drivers/block/efi-media-uclass.c   |  2 +-
 drivers/block/efi_blk.c            | 30 ++++++++++++
 lib/efi_client/Kconfig             | 12 ++++-
 lib/efi_client/efi.c               | 36 +++++++++++++++
 lib/efi_client/efi_app.c           | 10 ++++
 lib/efi_client/efi_app_init.c      | 18 +++++---
 scripts/build-efi                  | 73 +++++++++++++++++++++++++++---
 scripts/build-qemu                 | 20 ++++----
 19 files changed, 292 insertions(+), 100 deletions(-)

-- 
2.43.0

base-commit: 42c99ae5bebcecc7b734865c8077c4bf9275e78a
branch: appc


More information about the U-Boot mailing list