26 Jan, 2019

1 commit

  • The dtoc tests need to be adapted to dtoc being changed to output platdata
    structs as const, which has been introduced in commit 7d05d3a8e35f ("dtoc:
    make generated platdata structs const").

    Fixes: 7d05d3a8e35f ("dtoc: make generated platdata structs const")
    Signed-off-by: Simon Goldschmidt
    Reviewed-by: Simon Glass
    Tested-by: Simon Glass

    Simon Goldschmidt
     

16 Jan, 2019

1 commit


09 Oct, 2018

1 commit


08 Oct, 2018

4 commits

  • At present the tests run one after the other using a single CPU. This is
    not very efficient. Bring in the concurrencytest module and run the tests
    concurrently, using one process for each CPU by default. A -P option
    allows this to be overridden, which is necessary for code-coverage to
    function correctly.

    This requires fixing a few tests which are currently not fully
    independent.

    At some point we might consider doing this across all pytests in U-Boot.
    There is a pytest version that supports specifying the number of processes
    to use, but it did not work for me.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • There are a few test cases which print output. Suppress this so that tests
    can run silently in the normal case.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present 'make check' leaves some temporary directories around. Part of
    this is because we call tools.PrepareOutputDir() twice in some cases,
    without calling tools.FinaliseOutputDir() in between.

    Fix this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This module is often available in the sandbox_spl build created by
    'make check'. Use this as a default path so that just typing 'binman -t'
    (without setting PYTHONPATH) will generally run the tests.

    Signed-off-by: Simon Glass

    Simon Glass
     

29 Sep, 2018

5 commits


08 Aug, 2018

1 commit

  • The enhanced pylibfdt support in U-Boot needed for binman was a
    placeholder while upstreaming of this work continued. This is now
    complete, so bring in the changes and update the tools as needed.

    There are quite a few changes since we decided to split the
    implementation into three fdt classes instead of two.

    The Fdt.del_node() method was unfortunately missed in this process and
    will be dealt with later. It exists in U-Boot but not upstream.

    Further syncing of libfdt probably needs to wait until we assess the
    code-size impact of all the new checking code on SPL and possibly provide
    a way to disable it.

    Signed-off-by: Simon Glass

    Simon Glass
     

02 Aug, 2018

5 commits


09 Jul, 2018

14 commits


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

05 Mar, 2018

1 commit

  • Thomas reported U-Boot failed to build host tools if libfdt-devel
    package is installed because tools include libfdt headers from
    /usr/include/ instead of using internal ones.

    This commit moves the header code:
    include/libfdt.h -> include/linux/libfdt.h
    include/libfdt_env.h -> include/linux/libfdt_env.h

    and replaces include directives:
    #include -> #include
    #include -> #include

    Reported-by: Thomas Petazzoni
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

29 Jan, 2018

1 commit


16 Jan, 2018

1 commit


23 Nov, 2017

2 commits


15 Sep, 2017

2 commits

  • Add a header that indicates that the files generated by dtoc should not be
    modified.

    Signed-off-by: Simon Glass
    Tested-by: Kever Yang

    Simon Glass
     
  • At present dtoc has a very simplistic view of phandles. It assumes that
    a property has only a single phandle with a single argument (i.e. two
    cells per property).

    This is not true in many cases. Enhance the implementation to scan all
    phandles in a property and to use the correct number of arguments (which
    can be 0, 1, 2 or more) when generating the C code. For the struct
    definitions, use a struct which can hold the maximum number of arguments
    used by the property.

    Signed-off-by: Simon Glass
    Tested-by: Kever Yang

    Simon Glass