28 Mar, 2020

1 commit


08 Jan, 2020

1 commit

  • There is black magic in the file conftest.py that list
    all the test unit. Then, all those test unit are called
    in pytest. This call is done with the end of the name
    (for example checksum if the full name is bloblist_test_checksum).

    The result is that only test for dm are really executed.
    by pytest, all others tests are listed but never executed.

    This behaviour happens because the dm test unit only check
    the end of the name and others tests checks the full name.

    To fix this issue, I've added a prefix to the function
    cmd_ut_category, and this prefix is removed when looking
    for the unit test.

    Signed-off-by: Philippe Reynes
    Tested-by: Heinrich Schuchardt

    Philippe Reynes
     

03 Dec, 2019

1 commit


12 Aug, 2019

1 commit


29 Jul, 2019

1 commit

  • Upcoming patches want to add decompression to use cases that are no
    longer directly related to booting. It makes sense to retain a single
    decompression routine, but it should no longer be in bootm.c (which is
    not compiled for all configurations). This patch moves
    bootm_decomp_image() to image.c and renames it to image_decomp() in
    preparation of those upcoming patches.

    Signed-off-by: Julius Werner
    Reviewed-by: Simon Goldschmidt
    [trini: Fix warning around handle_decomp_error being unused]
    Signed-off-by: Tom Rini

    Julius Werner
     

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
     

04 Dec, 2017

1 commit

  • Adjust this test to use the unit test framework. Drop the two existing
    commands for running the tests and replace them with a single
    'ut compression' command, with sub-commands.

    Signed-off-by: Simon Glass
    [trini: Continue to have ret = run_test_internal(...) in run_test so ret
    is always initialized]
    Signed-off-by: Tom Rini

    Simon Glass
     

03 Dec, 2017

1 commit

  • At present the test setup is somewhat mixed with the test itself. But if
    the test setup fails (which it should not) then the test is actually
    invalid. Put all the test buffers and sizes in a struct and separate out
    the core code into a function.

    This will make it easier to move the code to use the unit test framework.

    Signed-off-by: Simon Glass

    Simon Glass
     

12 Oct, 2015

1 commit

  • This patch adds support for LZ4-compressed FIT image contents. This
    algorithm has a slightly worse compression ration than LZO while being
    nearly twice as fast to decompress. When loading images from a fast
    storage medium this usually results in a boot time win.

    Sandbox-tested only since I don't have a U-Boot development system set
    up right now. The code was imported unchanged from coreboot where it's
    proven to work, though. I'm mostly interested in getting this recognized
    by mkImage for use in a downstream project.

    Signed-off-by: Julius Werner
    Acked-by: Simon Glass

    Julius Werner
     

19 Apr, 2015

1 commit


15 Jan, 2015

2 commits


15 Oct, 2013

1 commit


04 Sep, 2013

1 commit

  • This adds the "test_compression" command when building the sandbox. This
    tests the existing compression and decompression routines for simple
    sanity and for buffer overflow conditions.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook