Commit f78f6f0b authored by Neal Liu's avatar Neal Liu Committed by Herbert Xu

crypto: aspeed - fix build error when only CRYPTO_DEV_ASPEED is enabled

Fix build error within the following configs setting:
- CONFIG_CRYPTO_DEV_ASPEED=y
- CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH is not set
- CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO is not set

Error messages:
make[4]: *** No rule to make target 'drivers/crypto/aspeed/aspeed_crypto.o'
, needed by 'drivers/crypto/aspeed/built-in.a'.
make[4]: Target '__build' not remade because of errors.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarNeal Liu <neal_liu@aspeedtech.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f5b657e5
config CRYPTO_DEV_ASPEED config CRYPTO_DEV_ASPEED
tristate "Support for Aspeed cryptographic engine driver" tristate "Support for Aspeed cryptographic engine driver"
depends on ARCH_ASPEED || COMPILE_TEST depends on ARCH_ASPEED || COMPILE_TEST
select CRYPTO_ENGINE
help help
Hash and Crypto Engine (HACE) is designed to accelerate the Hash and Crypto Engine (HACE) is designed to accelerate the
throughput of hash data digest, encryption and decryption. throughput of hash data digest, encryption and decryption.
...@@ -20,7 +21,6 @@ config CRYPTO_DEV_ASPEED_DEBUG ...@@ -20,7 +21,6 @@ config CRYPTO_DEV_ASPEED_DEBUG
config CRYPTO_DEV_ASPEED_HACE_HASH config CRYPTO_DEV_ASPEED_HACE_HASH
bool "Enable Aspeed Hash & Crypto Engine (HACE) hash" bool "Enable Aspeed Hash & Crypto Engine (HACE) hash"
depends on CRYPTO_DEV_ASPEED depends on CRYPTO_DEV_ASPEED
select CRYPTO_ENGINE
select CRYPTO_SHA1 select CRYPTO_SHA1
select CRYPTO_SHA256 select CRYPTO_SHA256
select CRYPTO_SHA512 select CRYPTO_SHA512
...@@ -34,7 +34,6 @@ config CRYPTO_DEV_ASPEED_HACE_HASH ...@@ -34,7 +34,6 @@ config CRYPTO_DEV_ASPEED_HACE_HASH
config CRYPTO_DEV_ASPEED_HACE_CRYPTO config CRYPTO_DEV_ASPEED_HACE_CRYPTO
bool "Enable Aspeed Hash & Crypto Engine (HACE) crypto" bool "Enable Aspeed Hash & Crypto Engine (HACE) crypto"
depends on CRYPTO_DEV_ASPEED depends on CRYPTO_DEV_ASPEED
select CRYPTO_ENGINE
select CRYPTO_AES select CRYPTO_AES
select CRYPTO_DES select CRYPTO_DES
select CRYPTO_ECB select CRYPTO_ECB
......
hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace.o aspeed-hace-hash.o hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace-hash.o
hace-crypto-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO) := aspeed-hace.o aspeed-hace-crypto.o hace-crypto-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO) := aspeed-hace-crypto.o
obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed_crypto.o obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed_crypto.o
aspeed_crypto-objs := $(hace-hash-y) \ aspeed_crypto-objs := aspeed-hace.o \
$(hace-hash-y) \
$(hace-crypto-y) $(hace-crypto-y)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment