summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilaksidduram <tilaksidduram@gmail.com>2016-02-22 21:20:02 +0530
committertilaksidduram <tilaksidduram@gmail.com>2016-03-04 10:34:21 +0530
commit0a4d368084f62673639d0f53f35b9f8623c53753 (patch)
treeab6fea482765b3168d85e363043f9a7fe95923ac
parentdfd2e75a7420dda031cac331b483e098091925e2 (diff)
downloaddevice_samsung_n7100-0a4d368084f62673639d0f53f35b9f8623c53753.zip
device_samsung_n7100-0a4d368084f62673639d0f53f35b9f8623c53753.tar.gz
device_samsung_n7100-0a4d368084f62673639d0f53f35b9f8623c53753.tar.bz2
n7100: enable f2fs support
credits to keepcalm444
-rw-r--r--BoardConfig.mk1
-rw-r--r--n7100.mk6
-rw-r--r--rootdir/fstab.smdk4x122
3 files changed, 9 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 1ad696e..abbfe29 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -53,6 +53,7 @@ TARGET_EXTERNAL_APPS = sdcard1
# Recovery
TARGET_RECOVERY_FSTAB := device/samsung/n7100/rootdir/fstab.smdk4x12
+TARGET_USERIMAGES_USE_F2FS := true
RECOVERY_FSTAB_VERSION := 2
# Compatibility with pre-kitkat Sensor HALs
diff --git a/n7100.mk b/n7100.mk
index b5a58f2..e1a6ab7 100644
--- a/n7100.mk
+++ b/n7100.mk
@@ -39,6 +39,12 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
camera.smdk4x12
+# f2fs
+PRODUCT_PACKAGES += \
+ fibmap.f2fs \
+ fsck.f2fs \
+ mkfs.f2fs
+
# Busybox
PRODUCT_PACKAGES += \
busybox
diff --git a/rootdir/fstab.smdk4x12 b/rootdir/fstab.smdk4x12
index 5f90e5d..d2ea48c 100644
--- a/rootdir/fstab.smdk4x12
+++ b/rootdir/fstab.smdk4x12
@@ -6,8 +6,10 @@
/dev/block/mmcblk0p3 /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait
/dev/block/mmcblk0p13 /system ext4 ro,noatime wait
+/dev/block/mmcblk0p12 /cache f2fs noatime,discard,inline_xattr,inline_data,nosuid,nodev wait
/dev/block/mmcblk0p12 /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
/dev/block/mmcblk0p14 /preload ext4 noatime,nosuid,nodev,journal_async_commit wait
+/dev/block/mmcblk0p16 /data f2fs noatime,discard,inline_xattr,inline_data,nosuid,nodev wait,check,encryptable=footer
/dev/block/mmcblk0p16 /data ext4 noatime,nosuid,nodev,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer
# vold-managed volumes ("block device" is actually a sysfs devpath)