aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzuWei Lin <szuweilin@google.com>2017-10-18 13:27:48 +0800
committerSzuWei Lin <szuweilin@google.com>2017-10-19 02:07:35 +0000
commitc867f1b6813281a3a27d805d096f1a72263270e8 (patch)
tree787e67f4910b1f0d957d583f7b1d3796320f625d
parent5dbc0cab73d498f7ac28e47f6fbc8c078f2f8a0b (diff)
downloadbuild-c867f1b6813281a3a27d805d096f1a72263270e8.tar.gz
Add make_f2fs into GSI
The userdata partition of some devices is formatted in f2fs, and could be formatted in runtime. This is a configurable feature of AOSP, so GSI enables the setting: TARGET_USERIMAGES_USE_F2FS to support it. Bug: 67916560 Bug: 66925248 Test: build pass and check the make_f2fs in the image Test: boot a pixel device with GSI to home screen Change-Id: Id350c4e07a9c0dc0f0a547b3146626053c88b8ab
-rw-r--r--target/board/treble_common.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/board/treble_common.mk b/target/board/treble_common.mk
index ec711c256a..fd3363c892 100644
--- a/target/board/treble_common.mk
+++ b/target/board/treble_common.mk
@@ -30,7 +30,10 @@ TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
# system.img is always ext4 with sparse option
+# GSI also includes make_f2fs to support userdata parition in f2fs
+# for some devices
TARGET_USERIMAGES_USE_EXT4 := true
+TARGET_USERIMAGES_USE_F2FS := true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
TARGET_USES_MKE2FS := true