lib/xxhash.c: Add new hash functions
Add xxhash functions. This is a very fast hash function, running at RAM
speed limits.
This code was adapted from the linux kernel with minor modifications to
make it fit in coreboot.
BUG=b:193557430
TEST=compile
Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com>
Change-Id: I8108af5ab14d8e6c6f5859bd36155c7d254e892c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67300
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index 68a2960..8cd01ad 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -279,6 +279,9 @@
ramstage-y += crc_byte.c
smm-y += crc_byte.c
+romstage-y += xxhash.c
+ramstage-y += xxhash.c
+
postcar-y += bootmode.c
postcar-y += boot_device.c
postcar-y += cbfs.c