Despite previous work to move out uImage and FIT-specific parts out of
the bootm code, common/boot.c still has a number of places where code
checks if it's a FIT image, a uImage or a plain file.

This series lays the groundwork for a second series that will:
- Introduce the concept of a loadable for deferred boot component loading
- Switch all code to generate loadables once at the start and then
  extracting them later on, irrespective of their origin
- Implement a more robust and powerful override mechanim, where
  individual loadables can be switched against each other

Before we can do that, we however need to refactor the code a bit and
add some helpers that are going to be used.

Ahmad Fatoum (15):
  FIT: implement fit_count_images
  FIT: add image index argument to fit_open_image
  resource: implement gap-aware lookup_region
  bootm: give bootm_load_ functions an end address
  bootm: store separate image_type and kernel_type
  bootm: cache os_file for appendroot purposes
  bootm: fit: move length calculation into fit_open
  libfile: factor out zero-page resistant read_file as
    __read_full_anywhere
  resource: implement resize_region
  bootm: rename image_data::os/initrd with _uimage suffix
  uimage: record original file name in uimage_handle
  bootm: factor out file detection into helper
  efi: payload: bootm: add dry run support
  efi: payload: bootm: fix memory corruption on initrd load error
  efi: initrd: make efi_initrd_register initrd pointer param const

 arch/arm/lib32/bootm.c              |  26 +++--
 arch/arm/lib64/armlinux.c           |   7 +-
 arch/arm/mach-at91/bootm-barebox.c  |   7 +-
 arch/arm/mach-imx/imx-v3-image.c    |   7 +-
 arch/arm/mach-layerscape/pblimage.c |   7 +-
 arch/arm/mach-rockchip/bootm.c      |  13 ++-
 arch/arm/mach-zynq/bootm-zynqimg.c  |   7 +-
 arch/kvx/lib/bootm.c                |  17 ++-
 arch/powerpc/lib/ppclinux.c         |  15 ++-
 common/booti.c                      |  33 +++---
 common/bootm-fit.c                  |  30 +++--
 common/bootm-uimage.c               |  38 +++---
 common/bootm.c                      | 173 +++++++++++++++++-----------
 common/image-fit.c                  | 106 ++++++++++-------
 common/memory.c                     |  25 ++++
 common/resource.c                   |  78 +++++++++++++
 common/uimage.c                     |   2 +
 drivers/of/overlay.c                |   8 +-
 efi/initrd.c                        |   4 +-
 efi/loader/bootm.c                  |  13 ++-
 efi/payload/bootm.c                 |  17 +--
 include/bootm.h                     |  23 ++--
 include/efi/initrd.h                |   2 +-
 include/image-fit.h                 |  33 +++++-
 include/image.h                     |   1 +
 include/libfile.h                   |   3 +
 include/linux/ioport.h              |  13 ++-
 include/memory.h                    |   2 +
 lib/libfile.c                       |  69 +++++++++++
 29 files changed, 550 insertions(+), 229 deletions(-)

-- 
2.47.3


Reply via email to