diff options
author | Simon Glass | 2021-09-25 19:43:24 -0600 |
---|---|---|
committer | Tom Rini | 2021-10-08 15:53:26 -0400 |
commit | e7d285b2f38202f9d7ffbdcae59283f08bafd8b9 (patch) | |
tree | fb0f32f97c2267949ca6146cc6c0ab94d3ffe8a2 /lib/Kconfig | |
parent | 2bbed3ff8c7fa0c0fa3fd28a9497bf7a99e3388b (diff) |
image: Use the correct checks for CRC32
Add a host Kconfig for CRC32. With this we can use CONFIG_IS_ENABLED(CRC32)
directly in the host build, so drop the unnecessary indirection.
Add a few more conditions to SPL_CRC32 to avoid build failures as well as
TPL_CRC32. Also update hash.c to make crc32 optional and to actually take
notice of SPL_CRC32.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 64765acfa61..70bf8e7a464 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -496,6 +496,11 @@ config SPL_MD5 security applications, but it can be useful for providing a quick checksum of a block of data. +config CRC32 + def_bool y + help + Enables CRC32 support in U-Boot. This is normally required. + config CRC32C bool |