Add make_f2fs module for device.
We now have a lightweight binary (not statically linked) to create
f2fs filesystems on a device. Leaves the existing mkfs.f2fs intact
for recovery to continue using.
Bug: 20275581
Change-Id: Ibe0495ee6fa620f76d77f4dd0b89012ce9682b1b
diff --git a/Android.mk b/Android.mk
index beac59d..5d73c3b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -77,6 +77,21 @@
#----------------------------------------------------------
include $(CLEAR_VARS)
+LOCAL_MODULE := make_f2fs
+
+LOCAL_SRC_FILES := \
+ lib/libf2fs_io.c \
+ mkfs/f2fs_format_main.c
+LOCAL_C_INCLUDES := $(common_C_INCLUDES)
+LOCAL_CFLAGS := $(version_CFLAGS)
+LOCAL_STATIC_LIBRARIES := libf2fs_fmt
+LOCAL_SHARED_LIBRARIES := libext2_uuid
+LOCAL_SYSTEM_SHARED_LIBRARIES := libc
+LOCAL_MODULE_TAGS := optional
+include $(BUILD_EXECUTABLE)
+
+#----------------------------------------------------------
+include $(CLEAR_VARS)
# The LOCAL_MODULE name is referenced by the code. Don't change it.
LOCAL_MODULE := fsck.f2fs
LOCAL_SRC_FILES := \