crypto: acomp - fix dependency in Makefile
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Wed, 26 Oct 2016 09:56:45 +0000 (10:56 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Nov 2016 00:37:15 +0000 (08:37 +0800)
Fix dependency between acomp and scomp that appears when acomp is
built as module

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Makefile

index 5c83f3dea119794db85227f6f783fa14e903f665..82ffeee1be52d5722de8597b2339d1f1941b694d 100644 (file)
@@ -50,8 +50,9 @@ rsa_generic-y += rsa_helper.o
 rsa_generic-y += rsa-pkcs1pad.o
 obj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o
 
-obj-$(CONFIG_CRYPTO_ACOMP2) += acompress.o
-obj-$(CONFIG_CRYPTO_ACOMP2) += scompress.o
+crypto_acompress-y := acompress.o
+crypto_acompress-y += scompress.o
+obj-$(CONFIG_CRYPTO_ACOMP2) += crypto_acompress.o
 
 cryptomgr-y := algboss.o testmgr.o