• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  # enable process_priority for ohos_lite
34  init_feature_enable_lite_process_priority = false
35
36  # enable hook_mgr for ohos_lite
37  init_feature_use_hook_mgr = false
38  if (!defined(ohos_lite)) {
39    init_feature_use_hook_mgr = true
40  }
41
42  # config memory size for liteos-m
43  init_lite_memory_size = 10240
44
45  startup_init_feature_decode_group_file = false
46
47  startup_init_test_performance = true
48
49  # log display control
50  init_lite_no_log = false
51
52  startup_init_with_param_base = false
53  if (!use_musl) {
54    startup_init_with_param_base = true
55    startup_init_feature_decode_group_file = true
56  }
57
58  #deps appspawn_client
59  init_appspawn_client_module = true
60
61  # begetutil extension module
62  init_begetutil_extra_modules = ""
63  init_extra_static_modules = ""
64
65  init_use_encaps = false
66
67  # erofs overlay feature switch
68  init_startup_feature_erofs_overlay = false
69
70  # system call wrap switch
71  init_startup_feature_system_call_switch = false
72
73  #deps param_watcher xcollie
74  init_paramwatcher_hicollie_enable = true
75  if (defined(global_parts_info) &&
76      !defined(global_parts_info.hiviewdfx_hicollie)) {
77    init_paramwatcher_hicollie_enable = false
78  }
79
80  # seccomp privilege
81  init_feature_seccomp_privilege = false
82
83  # group_type support system
84  init_feature_group_type = true
85
86  # only the pc can obtain the device serial number
87  init_get_disk_sn = false
88
89  # seccomp custom
90  init_feature_custom_sandbox = false
91
92  # init sasn support
93  init_feature_support_asan = true
94}
95