Merge "recovery: Depend on mkfs.f2fs only if needed."
diff --git a/Android.mk b/Android.mk
index 74e7b1d..4ffa5c9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -45,9 +45,11 @@
 
 LOCAL_FORCE_STATIC_EXECUTABLE := true
 
+ifeq ($(TARGET_USERIMAGES_USE_F2FS),true)
 ifeq ($(HOST_OS),linux)
 LOCAL_REQUIRED_MODULES := mkfs.f2fs
 endif
+endif
 
 RECOVERY_API_VERSION := 3
 RECOVERY_FSTAB_VERSION := 2