Now that the competing image clean-up has landed and the smoke has
cleared, we can come back to this one.

This series includes about a third of the original patches, mostly the
ones that apply cleanly.

It does not reduce the #idefs by as much, but it does make some small
code improvements.

Further patches can be pulled in once these ones have been reviewed and
land.

Build here:

https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/9251

Changes in v4:
- Rebase to master

Changes in v3:
- Pick up only the first part of the original v2 series

Changes in v2:
- Add a patch to introduce a memdup() function
- Add new abuf_init_set() function
- Update abuf_realloc() to return after every case
- Use const for abuf_data() and abuf_size()
- Make use of memdup()
- Add abuf_init_move()
- Add comments about the assumptions made by lib_test_abuf_realloc()
- Add better comments about why some tests are skipped at present
- Correct 'hose' typo

Simon Glass (15):
  lib: Add memdup()
  Add support for an owned buffer
  compiler: Add a comment to host_build()
  zstd: Create a function for use from U-Boot
  btrfs: Use U-Boot API for decompression
  image: Avoid switch default in image_decomp()
  image: Update zstd to avoid reporting error twice
  gzip: Avoid use of u64
  image: Update image_decomp() to avoid ifdefs
  image: Split board code out into its own file
  image: Fix up checkpatch warnings in image-board.c
  image: Split host code out into its own file
  image: Create a function to do manual relocation
  image: Avoid #ifdefs for manual relocation
  image: Remove ifdefs around image_setup_linux() el at

 common/Makefile           |    2 +-
 common/bootm.c            |   16 +-
 common/image-board.c      |  939 +++++++++++++++++++++++++++++
 common/image-host.c       |   27 +
 common/image-sig.c        |   40 +-
 common/image.c            | 1177 +++----------------------------------
 configs/sandbox_defconfig |    1 +
 fs/btrfs/compression.c    |   51 +-
 include/abuf.h            |  159 +++++
 include/compiler.h        |    8 +
 include/gzip.h            |    8 +-
 include/linux/string.h    |   13 +
 include/linux/zstd.h      |   11 +
 include/relocate.h        |   30 +-
 lib/Makefile              |    1 +
 lib/abuf.c                |  109 ++++
 lib/gunzip.c              |   28 +-
 lib/string.c              |   13 +
 lib/zstd/Makefile         |    2 +-
 lib/zstd/zstd.c           |   64 ++
 test/lib/Makefile         |    1 +
 test/lib/abuf.c           |  344 +++++++++++
 test/lib/string.c         |   32 +
 tools/Makefile            |    1 +
 24 files changed, 1887 insertions(+), 1190 deletions(-)
 create mode 100644 common/image-board.c
 create mode 100644 common/image-host.c
 create mode 100644 include/abuf.h
 create mode 100644 lib/abuf.c
 create mode 100644 lib/zstd/zstd.c
 create mode 100644 test/lib/abuf.c

-- 
2.33.0.685.g46640cef36-goog

Reply via email to