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
14init_innerkits_path = "//base/startup/init/interfaces/innerkits"
15
16declare_args() {
17  enable_ohos_startup_init_feature_watcher = true
18  enable_ohos_startup_init_feature_deviceinfo = true
19
20  # only for test
21  param_test = true
22  param_base_log = false
23  init_feature_ab_partition = false
24
25  # init begetctl support liteos
26  init_feature_begetctl_liteos = false
27
28  # only support mbedtls for hash
29  init_lite_use_thirdparty_mbedtls = true
30  init_lite_use_posix_file_api = false
31  config_ohos_startup_init_lite_data_path = "/"
32
33  # config memory size for liteos-m
34  init_lite_memory_size = 5120
35
36  startup_init_feature_decode_group_file = false
37
38  startup_init_test_performance = true
39
40  # log display control
41  init_lite_no_log = false
42
43  startup_init_with_param_base = false
44  if (!use_musl) {
45    startup_init_with_param_base = true
46    startup_init_feature_decode_group_file = true
47  }
48
49  #deps appspawn_client
50  init_appspawn_client_module = true
51
52  # begetutil extension module
53  init_begetutil_extra_modules = ""
54  init_extra_static_modules = ""
55
56  # erofs overlay feature switch
57  init_startup_feature_erofs_overlay = false
58
59  init_use_encaps = false
60
61  # system call wrap switch
62  init_startup_feature_system_call_switch = false
63
64  #deps param_watcher xcollie
65  init_paramwatcher_hicollie_enable = true
66  if (defined(global_parts_info) &&
67      !defined(global_parts_info.hiviewdfx_hicollie)) {
68    init_paramwatcher_hicollie_enable = false
69  }
70}
71