summaryrefslogtreecommitdiffstats
path: root/fs_mgr/Android.mk
diff options
context:
space:
mode:
authorChris Fries <cfries@motorola.com>2013-09-05 13:19:21 -0500
committerEd Tam <etam@google.com>2015-04-10 15:01:16 -0700
commit79f338465213885900cea5a39f3aeeea083bbe51 (patch)
treec2514aecb7030491246a006870f3bd6ecbeda5d0 /fs_mgr/Android.mk
parent317b4024a2a46b8c57abfa08f2a649df13572bd3 (diff)
downloadsystem_core-79f338465213885900cea5a39f3aeeea083bbe51.zip
system_core-79f338465213885900cea5a39f3aeeea083bbe51.tar.gz
system_core-79f338465213885900cea5a39f3aeeea083bbe51.tar.bz2
fs_mgr: introduce fs_mgr_format to format wiped partitions
Move fastboot's format logic into fs_mgr, to consolidate the knowledge about how to do this (and when to wipe metadata). Try to format these formattable paritions if they are wiped. If formatting fails, we will fall out to let recovery mode handle it. Bug: 20082763 Change-Id: I397cc197550e78d932e8a154fd234695c46dbe7b
Diffstat (limited to 'fs_mgr/Android.mk')
-rw-r--r--fs_mgr/Android.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs_mgr/Android.mk b/fs_mgr/Android.mk
index 61bf1ee..0ec6c4b 100644
--- a/fs_mgr/Android.mk
+++ b/fs_mgr/Android.mk
@@ -4,8 +4,12 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= fs_mgr.c fs_mgr_verity.c fs_mgr_fstab.c
+LOCAL_SRC_FILES += fs_mgr_format.c
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \
+ system/vold \
+ system/extras/ext4_utils \
+ external/openssl/include
LOCAL_MODULE:= libfs_mgr
LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static
@@ -35,6 +39,7 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static
+LOCAL_STATIC_LIBRARIES += libsparse_static libz libselinux
LOCAL_CFLAGS := -Werror