forked from openkylin/platform_build
core, release: add sload.f2fs for otatools.zip
This also updates mkf2fsuserimg.sh to call sload.f2fs. Change-Id: I245f6b3dfcd966fbc6783329d781375879fcd065 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
parent
6125d749ab
commit
2ea1eba98c
|
@ -2139,6 +2139,7 @@ OTATOOLS := $(HOST_OUT_EXECUTABLES)/minigzip \
|
||||||
$(HOST_OUT_EXECUTABLES)/mksquashfs \
|
$(HOST_OUT_EXECUTABLES)/mksquashfs \
|
||||||
$(HOST_OUT_EXECUTABLES)/mkf2fsuserimg.sh \
|
$(HOST_OUT_EXECUTABLES)/mkf2fsuserimg.sh \
|
||||||
$(HOST_OUT_EXECUTABLES)/make_f2fs \
|
$(HOST_OUT_EXECUTABLES)/make_f2fs \
|
||||||
|
$(HOST_OUT_EXECUTABLES)/sload_f2fs \
|
||||||
$(HOST_OUT_EXECUTABLES)/simg2img \
|
$(HOST_OUT_EXECUTABLES)/simg2img \
|
||||||
$(HOST_OUT_EXECUTABLES)/e2fsck \
|
$(HOST_OUT_EXECUTABLES)/e2fsck \
|
||||||
$(HOST_OUT_EXECUTABLES)/build_verity_tree \
|
$(HOST_OUT_EXECUTABLES)/build_verity_tree \
|
||||||
|
|
|
@ -517,6 +517,17 @@ def BuildImage(in_dir, prop_dict, out_file, target_out=None):
|
||||||
elif fs_type.startswith("f2fs"):
|
elif fs_type.startswith("f2fs"):
|
||||||
build_command = ["mkf2fsuserimg.sh"]
|
build_command = ["mkf2fsuserimg.sh"]
|
||||||
build_command.extend([out_file, prop_dict["partition_size"]])
|
build_command.extend([out_file, prop_dict["partition_size"]])
|
||||||
|
if fs_config:
|
||||||
|
build_command.extend(["-C", fs_config])
|
||||||
|
build_command.extend(["-f", in_dir])
|
||||||
|
if target_out:
|
||||||
|
build_command.extend(["-D", target_out])
|
||||||
|
if "selinux_fc" in prop_dict:
|
||||||
|
build_command.extend(["-s", prop_dict["selinux_fc"]])
|
||||||
|
build_command.extend(["-t", prop_dict["mount_point"]])
|
||||||
|
if "timestamp" in prop_dict:
|
||||||
|
build_command.extend(["-T", str(prop_dict["timestamp"])])
|
||||||
|
build_command.extend(["-L", prop_dict["mount_point"]])
|
||||||
else:
|
else:
|
||||||
print("Error: unknown filesystem type '%s'" % (fs_type))
|
print("Error: unknown filesystem type '%s'" % (fs_type))
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue