ext4fixup tool to fix wonky filesystems made by old version of make_ext4fs
The filesystems made by make_ext4fs for the Gingerbread and initial Honeycomb
releases did not round up the number of inodes/block_group to use all the
space available. This worked, but newer kernels have additional code that
refuses to write to these filesystems. There is a kernel patch available
to fix the problem in the kernel, but this tool was also written to fixup
the filesystems to be compliant with the new kernels.
Change-Id: I317b02ee2132ce6a0daeb4d1b40ad5ef57a0fb32
diff --git a/ext4_utils/Android.mk b/ext4_utils/Android.mk
index 2a5fca7..674cd47 100644
--- a/ext4_utils/Android.mk
+++ b/ext4_utils/Android.mk
@@ -5,6 +5,7 @@
libext4_utils_src_files := \
make_ext4fs.c \
+ ext4fixup.c \
ext4_utils.c \
allocate.c \
backed_block.c \
@@ -106,6 +107,24 @@
include $(CLEAR_VARS)
+LOCAL_SRC_FILES := ext4fixup_main.c
+LOCAL_MODULE := ext4fixup
+LOCAL_MODULE_TAGS := optional
+LOCAL_SHARED_LIBRARIES += libext4_utils libz
+
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := ext4fixup_main.c
+LOCAL_MODULE := ext4fixup
+LOCAL_MODULE_TAGS := optional
+LOCAL_STATIC_LIBRARIES += libext4_utils libz
+
+include $(BUILD_HOST_EXECUTABLE)
+
+include $(CLEAR_VARS)
+
LOCAL_MODULE := mkuserimg.sh
LOCAL_SRC_FILES := mkuserimg.sh
LOCAL_MODULE_CLASS := EXECUTABLES