On Sat, Oct 19, 2019 at 1:22 AM Mark Brown broonie@kernel.org wrote:
On Thu, Oct 17, 2019 at 10:00:12PM +0800, Tzung-Bi Shih wrote:
- Get EC codec's capabilities.
- Get and set SHM address if any.
- Transmit language model to EC codec if needed.
- Start to read audio data from EC codec if receives host event.
This breaks the build:
ld: sound/soc/codecs/cros_ec_codec.o: in function `calculate_sha256.isra.15': cros_ec_codec.c:(.text+0x119d): undefined reference to `crypto_alloc_shash' ld: cros_ec_codec.c:(.text+0x11c1): undefined reference to `crypto_shash_digest' ld: cros_ec_codec.c:(.text+0x11df): undefined reference to `crypto_destroy_tfm' make: *** [Makefile:1094: vmlinux] Error 1
Thanks so much for pointing this out. Yeah, I forgot to select CRYPTO_SHA256 in Kconfig.
Looks like there is a blind point in my local build tests (allyesconfig, allnoconfig, allmodconfig). The config in the build fail case could be "CROS_EC_CODEC=y" and "CRYPTO_*=n".
Could you tell me how you get the .config (to enhance my local build tests next time)? I tried randconfig several times but it seems not easy to hit the case (i.e. CROS_EC_CODEC=y but CRYPTO_*=n).