[U-Boot] [PATCH 1/7] libfdt: migrate fdt_rw.c to a wrapper of scripts/dtc/libfdt/fdt_rw.c

Simon Glass sjg at chromium.org
Tue Jan 16 14:50:38 UTC 2018


On 9 January 2018 at 01:34, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> The only difference between scripts/dtc/libfdt/fdt_rw.c and
> lib/libfdt/fdt_rw.c is fdt_remove_unused_strings().
>
> It is only used by fdtgrep, so we do not need to compile it for U-Boot
> image.  Move it to tools/libfdt/fdw_rw.c so that lib/libfdt/fdt_rw.c
> can be a wrapper of scripts/dtc/libfdt/fdt_rw.c.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
>  lib/libfdt/Makefile   |   5 +-
>  lib/libfdt/fdt_rw.c   | 498 +-------------------------------------------------
>  lib/libfdt/libfdt.h   |  17 --
>  tools/Makefile        |   6 +-
>  tools/fdt_host.h      |  17 ++
>  tools/fdtgrep.c       |   2 +-
>  tools/libfdt/fdt_rw.c |  35 ++++
>  7 files changed, 60 insertions(+), 520 deletions(-)
>  create mode 100644 tools/libfdt/fdt_rw.c

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


More information about the U-Boot mailing list