]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sha256 - Make lib/crypto/sha256.c suitable for generic use
authorHans de Goede <hdegoede@redhat.com>
Sat, 17 Aug 2019 14:24:33 +0000 (16:24 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Aug 2019 04:57:35 +0000 (14:57 +1000)
commit4fe2d97b594e51023ce315c25008bcae2e00ce01
treeaf7a77af65f727f130f7dc8bf40649cf1701f666
parent824a8abfa8e861f1600540df920b2322056c77e4
crypto: sha256 - Make lib/crypto/sha256.c suitable for generic use

Before this commit lib/crypto/sha256.c has only been used in the s390 and
x86 purgatory code, make it suitable for generic use:

* Export interesting symbols
* Add  -D__DISABLE_EXPORTS to CFLAGS_sha256.o for purgatory builds to
  avoid the exports for the purgatory builds
* Add to lib/crypto/Makefile and crypto/Kconfig

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/purgatory/Makefile
arch/x86/purgatory/Makefile
crypto/Kconfig
include/crypto/sha256.h
lib/crypto/Makefile
lib/crypto/sha256.c