[U-Boot] [PATCH 0/4] fdt: Switch to the latest libfdt, sort-of

Simon Glass sjg at chromium.org
Sun Oct 27 15:47:38 UTC 2019


This series brings over the latest libfdt with some changes to deal with
the recent code-size bloat.

With this change U-Boot size increases about 2.5KB on 'rock' and SPL
reduces by about 128 bytes. This should be acceptable.

The 'assumptions' series is still under review, so we can sync that up
later when complete.


Simon Glass (4):
  fdt: Add INT32_MAX to kernel.h for libfdt
  fdt: Add Kconfig options to control code size
  mx6: tbs2910: Minimise libfdt code size
  fdt: Sync up to the latest libfdt

 configs/tbs2910_defconfig            |   1 +
 include/linux/kernel.h               |   2 +
 include/linux/libfdt_env.h           |   1 +
 lib/Kconfig                          |  33 +++
 lib/libfdt/Makefile                  |   3 +-
 lib/libfdt/fdt_ro.c                  | 420 ++++++++++++++++++++-------
 scripts/dtc/libfdt/Makefile.libfdt   |   7 +
 scripts/dtc/libfdt/fdt.c             | 182 ++++++++----
 scripts/dtc/libfdt/fdt.h             |  47 +--
 scripts/dtc/libfdt/fdt_addresses.c   |  94 +++---
 scripts/dtc/libfdt/fdt_empty_tree.c  |  47 +--
 scripts/dtc/libfdt/fdt_overlay.c     |  91 ++----
 scripts/dtc/libfdt/fdt_ro.c          | 341 +++++++++++++++-------
 scripts/dtc/libfdt/fdt_rw.c          | 119 ++++----
 scripts/dtc/libfdt/fdt_strerror.c    |  47 +--
 scripts/dtc/libfdt/fdt_sw.c          | 241 ++++++++++-----
 scripts/dtc/libfdt/fdt_wip.c         |  47 +--
 scripts/dtc/libfdt/libfdt.h          | 268 +++++++++++++----
 scripts/dtc/libfdt/libfdt_env.h      |  48 +--
 scripts/dtc/libfdt/libfdt_internal.h | 144 +++++----
 tools/libfdt/fdt_rw.c                |   3 +-
 21 files changed, 1314 insertions(+), 872 deletions(-)

-- 
2.24.0.rc0.303.g954a862665-goog



More information about the U-Boot mailing list