summaryrefslogtreecommitdiff
path: root/drivers/crypto/aspeed/Makefile
diff options
context:
space:
mode:
authorNeal Liu <neal_liu@aspeedtech.com>2022-09-19 14:37:05 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-09-30 13:57:49 +0800
commitf78f6f0bf34fd85c17ebcb31d645536112aa25d3 (patch)
treec313d79841b228336d4f50bedc9054e2c4a5f040 /drivers/crypto/aspeed/Makefile
parentf5b657e5dbf830cfcb19b588b784b8190a5164a0 (diff)
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: kernel test robot <lkp@intel.com> Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/aspeed/Makefile')
-rw-r--r--drivers/crypto/aspeed/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/crypto/aspeed/Makefile b/drivers/crypto/aspeed/Makefile
index 3be78cec0ecb..a0ed40ddaad1 100644
--- a/drivers/crypto/aspeed/Makefile
+++ b/drivers/crypto/aspeed/Makefile
@@ -1,6 +1,7 @@
-hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace.o aspeed-hace-hash.o
-hace-crypto-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO) := aspeed-hace.o aspeed-hace-crypto.o
+hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace-hash.o
+hace-crypto-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO) := aspeed-hace-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)