05 Nov, 2019

3 commits


29 Jul, 2019

6 commits


11 Jul, 2019

14 commits


27 Apr, 2019

1 commit

  • generate define for an alias only if the struct is not
    created already.

    This prevents compilerwarning:
    PLAT spl/dts/dt-platdata.o
    spl/dts/dt-platdata.c:11:46: error: missing braces around initializer [-Werror=missing-braces]
    static const struct dtd_simple_bus dtv_ahb = {
    ^
    spl/dts/dt-platdata.c:20:46: error: missing braces around initializer [-Werror=missing-braces]
    static const struct dtd_simple_bus dtv_apb = {
    ^
    cc1: all warnings being treated as errors

    on the at91 based taurus board. Reason is in at91sam9260.dtsi
    is defined:

    ahb {
    compatible = "simple-bus";
    ranges;

    and later:

    pinctrl: pinctrl@fffff400 {
    compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
    ranges = ;

    without this patch dtoc generates:

    struct dtd_atmel_at91rm9200_pinctrl {
    fdt32_t atmel_mux_mask[6];
    fdt32_t ranges[3];
    fdt32_t reg[6];
    };

    struct dtd_simple_bus {
    bool ranges;
    };

    "#define dtd_simple_bus dtd_atmel_at91rm9200_pinctrl"

    and the line with "define dtd_simple_bus..." introduces
    the warning. This define is not needed.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     

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

3 commits