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