• 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
14import("//build/ohos.gni")
15
16updater_usb_init_cfg_path = "//base/startup/init/services/etc/init.usb.cfg"
17updater_init_usb_configfs_path_cfg =
18    "//drivers/peripheral/usb/cfg/init.usb.configfs.cfg"
19updater_faultloggerd_cfg =
20    "//base/hiviewdfx/faultloggerd/services/config/faultloggerd.cfg"
21updater_hilog_cfg = "//base/hiviewdfx/hilog/services/hilogd/etc/hilogd.cfg"
22
23ohos_prebuilt_etc("updater_hilog.cfg") {
24  source = "${updater_hilog_cfg}"
25  install_images = [ "updater" ]
26  subsystem_name = "updater"
27  part_name = "updater"
28}
29
30ohos_prebuilt_etc("updater_faultloggerd.cfg") {
31  source = "${updater_faultloggerd_cfg}"
32  install_images = [ "updater" ]
33  subsystem_name = "updater"
34  part_name = "updater"
35}
36
37ohos_prebuilt_etc("updater_common.cfg") {
38  source = "updater_common.cfg"
39  install_images = [ "updater" ]
40  subsystem_name = "updater"
41  part_name = "updater"
42}
43
44ohos_prebuilt_etc("updater_hdcd.cfg") {
45  source = "updater_hdcd.cfg"
46  install_images = [ "updater" ]
47  subsystem_name = "updater"
48  part_name = "updater"
49}
50
51ohos_prebuilt_etc("updater_init_usb.cfg") {
52  source = "${updater_usb_init_cfg_path}"
53  install_images = [ "updater" ]
54  subsystem_name = "updater"
55  part_name = "updater"
56}
57
58ohos_prebuilt_etc("updater_init_usb_configfs.cfg") {
59  source = "${updater_init_usb_configfs_path_cfg}"
60  install_images = [ "updater" ]
61  subsystem_name = "updater"
62  part_name = "updater"
63}
64
65group("updater_files") {
66  deps = [
67    ":updater_common.cfg",
68    ":updater_faultloggerd.cfg",
69    ":updater_hilog.cfg",
70    ":updater_init_usb.cfg",
71    ":updater_init_usb_configfs.cfg",
72  ]
73  if (build_variant == "root") {
74    deps += [ ":updater_hdcd.cfg" ]
75  }
76}
77