[10/11] backports: lib-arc4: Do not build when activated in kernel
diff mbox series

Message ID 20191003155642.14909-11-hauke@hauke-m.de
State New
Headers show
  • backports: Update to kernel 5.4-rc1
Related show

Commit Message

Hauke Mehrtens Oct. 3, 2019, 3:56 p.m. UTC
Only build the own lib-arc4 version when it is not build as a module or
into the kernel. Without this change it was also build when
CRYPTO_LIB_ARC4 was build as a module in the kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
 backport/compat/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig
index e462776e..3af729a3 100644
--- a/backport/compat/Kconfig
+++ b/backport/compat/Kconfig
@@ -175,6 +175,6 @@  config BPAUTO_CRYPTO_LIB_ARC4
 	default y if BPAUTO_CRYPTO_LIB_ARC4
-	depends on KERNEL_4_20 || !CRYPTO_LIB_ARC4
+	depends on !(CRYPTO_LIB_ARC4=y || CRYPTO_LIB_ARC4=m)
 	#h-file crypto/arc4.h
 	#c-file lib/crypto/arc4.c