• 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
14declare_args() {
15  enable_ohos_startup_init_feature_watcher = true
16  enable_ohos_startup_init_feature_deviceinfo = true
17  param_test = true
18  param_base_log = false
19  enable_ohos_startup_init_feature_ab_partition = false
20
21  # init begetctl support liteos
22  enable_ohos_startup_init_feature_begetctl_liteos = false
23  enable_ohos_startup_init_lite_use_thirdparty_mbedtls = true
24  enable_ohos_startup_init_lite_use_posix_file_api = false
25  enable_ohos_startup_init_feature_loader = false
26  config_ohos_startup_init_lite_data_path = ""
27
28  # config memory size for liteos-m
29  config_ohos_startup_init_lite_memory_size = 5120
30
31  # boot_kernel_extended_cmdline for extend cmdline
32
33  startup_init_feature_decode_group_file = false
34
35  # for liteos-a
36
37  if (defined(ohos_kernel_type) && ohos_kernel_type == "liteos_a") {
38    config_ohos_startup_init_lite_memory_size = 10240
39  }
40
41  # log display control
42  config_ohos_startup_init_lite_no_log = false
43
44  startup_init_with_param_base = false
45  if (!use_musl) {
46    startup_init_with_param_base = true
47    startup_init_feature_decode_group_file = true
48  }
49}
50