29 Jan, 2018

2 commits

  • Several host-tools use "bool" type without including .
    This relies on the crappy header inclusion chain.

    tools/Makefile has the following line:

    HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \

    All host-tools are forced to include libfdt_env.h even if they are
    totally unrelated to FDT. Then, is indirectly included
    as follows:

    include/libfdt_env.h
    -> include/linux/types.h
    ->

    I am fixing this horrible crap. In advance, I need to add necessary
    include directives explicitly. tools/fdtgrep.c needs more;
    for open() and for errno.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Joe Hershberger
    Reviewed-by: Simon Glass

    Masahiro Yamada
     
  • 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
    Reviewed-by: Simon Glass

    Masahiro Yamada
     

06 Nov, 2017

1 commit

  • U-Boot bundles a patched copy of libfdt, so it's wrong to attempt to
    include it . This breaks the build for me when I have dtc
    fully installed in my host -- as happened earlier tonight with
    Buildroot, for example.

    There are several other occurrences throughout the code where ' include style is being used -- IMHO wrongly.

    Signed-off-by: Jan Kundrát

    Jan Kundrát
     

12 Jun, 2017

1 commit


14 Apr, 2017

1 commit


07 Oct, 2016

1 commit


15 Mar, 2016

1 commit


04 Nov, 2015

1 commit


22 Jul, 2015

1 commit

  • This tool allows us to extract subsets of a device tree file. It is used by
    the SPL vuild, which needs to cut down the device tree size for use in
    limited memory.

    This tool was originally written for libfdt but it has not been accepted
    upstream, so for now, include it in U-Boot. Several utilfdt library
    functions been included inline here.

    If fdtgrep is eventually accepted in libfdt then we can bring that version
    of libfdt in here, and drop fdtgrep (requiring that fdtgrep is provided by
    the user).

    If it is not accepted then another approach would be to write a special
    tool for chopping down device tree files for SPL. While it would use the
    same libfdt support, it would be less code than fdtgrep.c because it would
    not have general-purpose functions.

    Another approach (which was used with v1 of this series) is to sprinkler all
    the device tree files with #ifdef. I don't like that idea.

    Signed-off-by: Simon Glass

    Simon Glass