Permalink
Browse files

use TARGET_RECOVERY_FSTAB location if defined

If TARGET_RECOVERY_FSTAB is defined use this location to find
recovery.fstab

Change-Id: Ic4cd26f5be064586359f39ff82d7f9b09ce57f53
  • Loading branch information...
1 parent 08bedb2 commit 9a7615326e8f18288614dacee454ef7ca02645ce @eaut eaut committed May 5, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 utilities/Android.mk
View
@@ -52,7 +52,12 @@ include $(BUILD_PREBUILT)
# endif
# include $(BUILD_PREBUILT)
-BOARD_RECOVERY_RFS_CHECK := $(shell grep rfs $(TARGET_DEVICE_DIR)/recovery.fstab)
+ifneq ($(TARGET_RECOVERY_FSTAB),)
+ BOARD_RECOVERY_RFS_CHECK := $(shell grep rfs $(TARGET_RECOVERY_FSTAB))
+else
+ BOARD_RECOVERY_RFS_CHECK := $(shell grep rfs $(TARGET_DEVICE_DIR)/recovery.fstab)
+endif
+
ifneq ($(BOARD_RECOVERY_RFS_CHECK),)
include $(CLEAR_VARS)
LOCAL_MODULE := fat.format

0 comments on commit 9a76153

Please sign in to comment.