lib: add calculate crc byte by byte

Change-Id: I5cab1f90452b08a464ad7a2d7e75d97187452992
Signed-off-by: Xiang Wang <merle@hardenedlinux.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36624
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Xiang Wang
2019-11-05 12:00:39 +08:00
committed by Patrick Georgi
parent a0218958a0
commit 4e39c824e0
3 changed files with 86 additions and 0 deletions

View File

@@ -249,6 +249,14 @@ postcar-y += string.c
ramstage-y += string.c
smm-y += string.c
decompressor-y += crc_byte.c
bootblock-y += crc_byte.c
verstage-y += crc_byte.c
romstage-y += crc_byte.c
postcar-y += crc_byte.c
ramstage-y += crc_byte.c
smm-y += crc_byte.c
postcar-y += bootmode.c
postcar-y += boot_device.c
postcar-y += cbfs.c