[PATCH 1/1] test: linking test/compression.c fails

Simon Glass sjg at chromium.org
Tue Nov 3 16:12:15 CET 2020


On Sat, 31 Oct 2020 at 01:59, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Building U-Boot with unit tests on a non-sandbox systems fails:
>
> ld.bfd: test/built-in.o: in function `compress_using_gzip':
> test/compression.c:138: undefined reference to `gzip'
> ld.bfd: test/built-in.o: in function `uncompress_using_bzip2':
> test/compression.c:187: undefined reference to `BZ2_bzBuffToBuffDecompress'
> ld.bfd: test/built-in.o: in function `uncompress_using_lzma':
> test/compression.c:222: undefined reference to `lzmaBuffToBuffDecompress'
> ld.bfd: test/built-in.o: in function `uncompress_using_lzo':
> test/compression.c:257: undefined reference to `lzop_decompress'
> ld.bfd: test/built-in.o: in function `uncompress_using_lz4':
> test/compression.c:292: undefined reference to `ulz4fn
>
> Add the missing dependencies.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  test/Kconfig  | 9 +++++++++
>  test/Makefile | 2 +-
>  2 files changed, 10 insertions(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list