[PATCH 1/2] dtc: Resync fdt_check_full() with upstream version v1.7.2-35-g52f07dcca47c

Simon Glass sjg at chromium.org
Wed May 27 06:41:17 CEST 2026


On 2026-05-26T20:19:26, Tom Rini <trini at konsulko.com> wrote:
> dtc: Resync fdt_check_full() with upstream version v1.7.2-35-g52f07dcca47c
>
> In the upstream project, the function fdt_check_full has been moved from
> fdt_ro.c to its own file, fdt_check.c. This file is not included in the
> Linux kernel copy and so has not been synced over. As we do need and use
> the fdt_check_full function, bring that file over as of the current
> upstream we are synced to. Remove our copy of this function from
> fdt_ro.c and add fdt_check.o and 1-liner fdt_check.c where needed. Note
> that for now, this will increase size in some cases as upstream does not
> have a size reduction method here.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
>
> lib/libfdt/Makefile                |  1 +
>  lib/libfdt/fdt_check.c             |  2 +
>  scripts/dtc/Makefile               |  2 +-
>  scripts/dtc/libfdt/Makefile.libfdt |  2 +-
>  scripts/dtc/libfdt/fdt_check.c     | 96 ++++++++++++++++++++++++++++++++++++++
>  scripts/dtc/libfdt/fdt_ro.c        | 88 ----------------------------------
>  scripts/dtc/update-dtc-source.sh   |  2 +-
>  tools/Makefile                     |  3 +-
>  tools/libfdt/fdt_check.c           |  2 +
>  9 files changed, 106 insertions(+), 92 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list