15f9996aaSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 25f9996aaSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 35f9996aaSopenharmony_ci# you may not use this file except in compliance with the License. 45f9996aaSopenharmony_ci# You may obtain a copy of the License at 55f9996aaSopenharmony_ci# 65f9996aaSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 75f9996aaSopenharmony_ci# 85f9996aaSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 95f9996aaSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 105f9996aaSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115f9996aaSopenharmony_ci# See the License for the specific language governing permissions and 125f9996aaSopenharmony_ci# limitations under the License. 135f9996aaSopenharmony_ci 145f9996aaSopenharmony_ci# 主要介绍拍包脚本使用的参数以及相关格式,文件行首字符为'#'为注释,拍包脚本扫描时将自动忽略 155f9996aaSopenharmony_ci# 拍包时调用脚本应该为mkimages.py 传递四个参数,即拍包使用的源文件路径,拍包时使用的参数的文件,拍包的目录镜像路径,以及拍包输出的out目录 165f9996aaSopenharmony_ci# 此文档时介绍拍包时使用参数文件的配置方法 175f9996aaSopenharmony_ci 185f9996aaSopenharmony_ci# 第一行固定为挂载路径,必选参数顺序要保持一直 195f9996aaSopenharmony_ci/vendor 205f9996aaSopenharmony_ci# 第二行固定为镜像制作大小 215f9996aaSopenharmony_ci268434944 225f9996aaSopenharmony_ci# 镜像文件系统类型,不可缺少,当前仅支持ext4,f2fs将在后续支持 235f9996aaSopenharmony_ci--fs_type=ext4 245f9996aaSopenharmony_ci# 后面跟着可选参数 255f9996aaSopenharmony_ci 265f9996aaSopenharmony_ci# ext4 文件系统类型配置参数 275f9996aaSopenharmony_ci# mke2fs 参数 285f9996aaSopenharmony_ci# inode size 大小,不配置默认为256 295f9996aaSopenharmony_ci--inode_size 256 305f9996aaSopenharmony_ci# journal_size用来配置journal参数,不配置默认不开启journal(data分区例外) 315f9996aaSopenharmony_ci--journal_size xxx 325f9996aaSopenharmony_ci# 镜像预留空间比例,不配置默认0(data分区例外,使用mke2fs默认预留比例) 335f9996aaSopenharmony_ci--reserve_percent xxx 345f9996aaSopenharmony_ci# extend_opts 参数,后面可以跟多个参数例如discard 355f9996aaSopenharmony_ci--extend_opts discard 365f9996aaSopenharmony_ci 375f9996aaSopenharmony_ci# e2fsdroid 参数 385f9996aaSopenharmony_ci# dac_config 为配置路径DAC使用 395f9996aaSopenharmony_ci--dac_config path 405f9996aaSopenharmony_ci 415f9996aaSopenharmony_ci# f2fs 文件系统类型配置参数 425f9996aaSopenharmony_ci# make_f2fs 配置参数 435f9996aaSopenharmony_ci# label标签,不设置默认使用mountpoint为label 445f9996aaSopenharmony_ci--label xxx 455f9996aaSopenharmony_ci# prjquota 使能开关 465f9996aaSopenharmony_ci--prjquota 475f9996aaSopenharmony_ci# casefold 使能开关 485f9996aaSopenharmony_ci--casefold 495f9996aaSopenharmony_ci 505f9996aaSopenharmony_ci#sload_f2fs 配置参数 515f9996aaSopenharmony_ci# dac_config 为配置路径DAC使用 525f9996aaSopenharmony_ci--dac_config path 535f9996aaSopenharmony_ci# timestamp, 默认不使用 545f9996aaSopenharmony_ci--timestamp xxx 55