Recovery: Add support for filesystems >2gb

Add a  prebuilt static linked mke2fs with support for >2gb FS.
Add board_has_large_filesystem define
Adjust mmcutils for differences between busybox and static mke2fs

Change-Id: Ib02771ee161e8874b6840067dc8682fc63ad6513
This commit is contained in:
Tony Layher 2011-03-20 08:28:09 -04:00
parent 67fa0c375f
commit 6d19f22c85
3 changed files with 12 additions and 2 deletions

View File

@ -341,12 +341,12 @@ run_exec_process ( char **argv) {
int
format_ext3_device (const char *device) {
// Run mke2fs
char *const mke2fs[] = {MKE2FS_BIN, "-j", device, NULL};
char *const mke2fs[] = {MKE2FS_BIN, "-j", "-q", device, NULL};
if(run_exec_process(mke2fs))
return -1;
// Run tune2fs
char *const tune2fs[] = {TUNE2FS_BIN, "-j", "-C", "1", device, NULL};
char *const tune2fs[] = {TUNE2FS_BIN, "-C", "1", device, NULL};
if(run_exec_process(tune2fs))
return -1;

View File

@ -42,4 +42,14 @@ LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)
ifneq ($BOARD_HAS_LARGE_FILESYSTEM,)
include $(CLEAR_VARS)
LOCAL_MODULE := mke2fs
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)
endif
endif

BIN
utilities/mke2fs Normal file

Binary file not shown.