Skip to content

Commit

Permalink
crypto: atmel-i2c - Fix build error while CRC16 set to m
Browse files Browse the repository at this point in the history
If CRYPTO_DEV_ATMEL_ECC is set m, which select CRC16 to m,
while CRYPTO_DEV_ATMEL_SHA204A is set to y, building fails.

drivers/crypto/atmel-i2c.o: In function 'atmel_i2c_checksum':
atmel-i2c.c:(.text+0x16): undefined reference to 'crc16'

Add CRC16 dependency to CRYPTO_DEV_ATMEL_SHA204A

Reported-by: Hulk Robot <[email protected]>
Fixes: da001fb ("crypto: atmel-i2c - add support for SHA204A random number generator")
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
YueHaibing authored and herbertx committed Jun 6, 2019
1 parent 385cfc8 commit 4bb02db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ config CRYPTO_DEV_ATMEL_SHA204A
depends on I2C
select CRYPTO_DEV_ATMEL_I2C
select HW_RANDOM
select CRC16
help
Microhip / Atmel SHA accelerator and RNG.
Select this if you want to use the Microchip / Atmel SHA204A
Expand Down

0 comments on commit 4bb02db

Please sign in to comment.