ANDROID: verity: really fix android-verity Kconfig
authorAlistair Strachan <astrachan@google.com>
Fri, 27 Jul 2018 16:18:28 +0000 (09:18 -0700)
committerAlistair Strachan <astrachan@google.com>
Fri, 27 Jul 2018 16:22:12 +0000 (09:22 -0700)
The change "ANDROID: verity: fix android-verity Kconfig dependencies"
relaxed the dependency on DM_VERITY=y to just DM_VERITY, but this is not
correct because there are parts of the verity and dm-mod API that
android-verity is using but which are not exported to modules.

Work around this problem by disallowing android-verity to be built-in
when the dm/verity core is built modularly.

Bug: 72722987
Change-Id: I3cfaa2acca8e4a4b5c459afdddd958ac9f8c1eb3
Signed-off-by: Alistair Strachan <astrachan@google.com>
drivers/md/Kconfig

index fbe545a6183efb1983165d999c3bc9ddefc29800..d87c4725ed5b28fe6c15cbadfc3dbdb2d7c3b3a0 100644 (file)
@@ -557,8 +557,8 @@ config DM_ZONED
 
 config DM_ANDROID_VERITY
        bool "Android verity target support"
-       depends on BLK_DEV_DM
-       depends on DM_VERITY
+       depends on BLK_DEV_DM=y
+       depends on DM_VERITY=y
        depends on X509_CERTIFICATE_PARSER
        depends on SYSTEM_TRUSTED_KEYRING
        depends on CRYPTO_RSA