Merge "Add TARGET_RECOVERY_FSTAB_GENRULE"
diff --git a/core/Makefile b/core/Makefile
index 030b3fe..d420c29 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -2117,6 +2117,9 @@
ifdef TARGET_RECOVERY_FSTAB
recovery_fstab := $(TARGET_RECOVERY_FSTAB)
+else ifdef TARGET_RECOVERY_FSTAB_GENRULE
+# Specifies a soong genrule module that generates an fstab.
+recovery_fstab := $(call intermediates-dir-for,ETC,$(TARGET_RECOVERY_FSTAB_GENRULE))/$(TARGET_RECOVERY_FSTAB_GENRULE)
else
recovery_fstab := $(strip $(wildcard $(TARGET_DEVICE_DIR)/recovery.fstab))
endif