[PATCH 00/18] Complete decoupling of bootm logic from commands

Simon Glass sjg at chromium.org
Mon Dec 4 01:26:16 CET 2023


This series continues refactoring the bootm code to allow it to be used
with CONFIG_COMMAND disabled. The OS-handling code is refactored and
a new bootm_run() function is created to run through the bootm stages.
This completes the work.

A booti_go() function is created also, in case it proves useful, but at
last for now standard boot does not use this.

This is cmdd (part d of CMDLINE refactoring)
It depends on dm/bootstda-working
which depends on dm/cmdc-working


Simon Glass (18):
  bootm: netbds: Drop passing of arguments
  bootm: plan: Drop passing of arguments
  bootm: qnxelf: Drop passing of arguments
  nios2: Drop separate parsing of bootm args
  treewide: bootm: Drop command-line args to boot_os_fn
  bootm: Drop arguments from boot_selected_os()
  mips: Add a reset_cpu() function
  m68k: Add a reset_cpu() function
  ppc: Add a reset_cpu() function
  nios2: Add a reset_cpu() function
  riscv: Add a reset_cpu() function
  bootm: Adjust how the board is reset
  bootm: Drop arguments from do_bootm_states() and rename
  bootm: Create a function to run through the bootm states
  stm32: Use local vars in stm32prog for initrd and fdt
  bootm: Create a function to run through the bootz states
  stm32: Use bootm_run() and bootz_run()
  bootm: Create a function to run through the booti states

 arch/arc/lib/bootm.c                          |   2 +-
 arch/arm/lib/bootm.c                          |   3 +-
 .../cmd_stm32prog/cmd_stm32prog.c             |  35 +++--
 arch/m68k/lib/bootm.c                         |   3 +-
 arch/m68k/lib/traps.c                         |   7 +
 arch/microblaze/lib/bootm.c                   |   3 +-
 arch/mips/cpu/cpu.c                           |   8 +-
 arch/mips/lib/bootm.c                         |   5 +-
 arch/nios2/cpu/cpu.c                          |   8 +-
 arch/nios2/lib/bootm.c                        |   5 +-
 arch/powerpc/lib/bootm.c                      |   3 +-
 arch/powerpc/lib/traps.c                      |  10 ++
 arch/riscv/cpu/cpu.c                          |  13 ++
 arch/riscv/lib/bootm.c                        |   5 +-
 arch/riscv/lib/reset.c                        |   7 +-
 arch/sandbox/lib/bootm.c                      |   2 +-
 arch/sh/lib/bootm.c                           |   3 +-
 arch/x86/lib/bootm.c                          |   3 +-
 arch/xtensa/lib/bootm.c                       |   2 +-
 boot/bootm.c                                  | 125 ++++++++++--------
 boot/bootm_os.c                               | 101 +++++---------
 cmd/booti.c                                   |  55 ++++----
 cmd/bootm.c                                   |  36 +++--
 cmd/bootz.c                                   |  38 ++++--
 include/bootm.h                               | 107 +++++++++++++--
 25 files changed, 362 insertions(+), 227 deletions(-)

-- 
2.43.0.rc2.451.g8631bc7472-goog



More information about the U-Boot-Custodians mailing list