1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14# 主要介绍拍包脚本使用的参数以及相关格式,文件行首字符为'#'为注释,拍包脚本扫描时将自动忽略 15# 拍包时调用脚本应该为mkimages.py 传递四个参数,即拍包使用的源文件路径,拍包时使用的参数的文件,拍包的目录镜像路径,以及拍包输出的out目录 16# 此文档时介绍拍包时使用参数文件的配置方法 17 18# 第一行固定为挂载路径,必选参数顺序要保持一直 19/vendor 20# 第二行固定为镜像制作大小 21268434944 22# 镜像文件系统类型,不可缺少,当前仅支持ext4,f2fs将在后续支持 23--fs_type=ext4 24# 后面跟着可选参数 25 26# ext4 文件系统类型配置参数 27# mke2fs 参数 28# inode size 大小,不配置默认为256 29--inode_size 256 30# journal_size用来配置journal参数,不配置默认不开启journal(data分区例外) 31--journal_size xxx 32# 镜像预留空间比例,不配置默认0(data分区例外,使用mke2fs默认预留比例) 33--reserve_percent xxx 34# extend_opts 参数,后面可以跟多个参数例如discard 35--extend_opts discard 36 37# e2fsdroid 参数 38# dac_config 为配置路径DAC使用 39--dac_config path 40 41# f2fs 文件系统类型配置参数 42# make_f2fs 配置参数 43# label标签,不设置默认使用mountpoint为label 44--label xxx 45# prjquota 使能开关 46--prjquota 47# casefold 使能开关 48--casefold 49 50#sload_f2fs 配置参数 51# dac_config 为配置路径DAC使用 52--dac_config path 53# timestamp, 默认不使用 54--timestamp xxx 55