[U-Boot] [PATCH] Add xxhash hashing support

Tom Rini trini at konsulko.com
Mon Mar 5 14:34:49 UTC 2018


On Mon, Mar 05, 2018 at 04:55:15PM +0300, dunaev at tecon.ru wrote:

> From: Dmitry Dunaev <dunaev at tecon.ru>

Please add some comments about why we're adding this support and where
it's used.

[snip]
>  common/image-fit.c      |   7 ++
>  include/image.h         |  12 +++
>  include/u-boot/xxhash.h | 143 ++++++++++++++++++++++++++
>  lib/Kconfig             |   8 ++
>  lib/Makefile            |   1 +
>  lib/xxhash.c            | 265 ++++++++++++++++++++++++++++++++++++++++++++++++
>  tools/Makefile          |   2 +
>  7 files changed, 438 insertions(+)

Please enable this for sandbox, where it should build cleanly and
without warnings.  If you can add a test for it under test/py/tests/
that would be even better.

> diff --git a/include/u-boot/xxhash.h b/include/u-boot/xxhash.h
> new file mode 100644
> index 0000000..ecbeb98
> --- /dev/null
> +++ b/include/u-boot/xxhash.h
> @@ -0,0 +1,143 @@
> +/*
> + * xxHash - Extremely Fast Hash algorithm
> + * Copyright (C) 2012-2016, Yann Collet.
> + *
> + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
[snip]
> diff --git a/lib/xxhash.c b/lib/xxhash.c
> new file mode 100644
> index 0000000..c9fe476
> --- /dev/null
> +++ b/lib/xxhash.c
> @@ -0,0 +1,265 @@
> +/*
> + * xxHash - Extremely Fast Hash algorithm
> + * Copyright (C) 2012-2016, Yann Collet.
> + *
> + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)

SPDX tag only please.

Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180305/4b46fb51/attachment.sig>


More information about the U-Boot mailing list