• 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  part_name = "device_rk3588"
27}
28
29ohos_prebuilt_etc("updater_faultloggerd.cfg") {
30  source = "${updater_faultloggerd_cfg}"
31  install_images = [ "updater" ]
32  part_name = "device_rk3588"
33}
34
35ohos_prebuilt_etc("updater_init.cfg") {
36  source = "config/init.cfg"
37  install_images = [ "updater" ]
38  part_name = "device_rk3588"
39}
40
41ohos_prebuilt_etc("updater_init_usb.cfg") {
42  source = "${updater_usb_init_cfg_path}"
43  install_images = [ "updater" ]
44  part_name = "device_rk3588"
45}
46
47ohos_prebuilt_etc("updater_init_usb_configfs.cfg") {
48  source = "${updater_init_usb_configfs_path_cfg}"
49  install_images = [ "updater" ]
50  part_name = "device_rk3588"
51}
52
53ohos_prebuilt_etc("updater_init_dayu210_usb.cfg") {
54  source = "config/init.dayu210.usb.cfg"
55  install_images = [ "updater" ]
56  part_name = "device_rk3588"
57}
58
59ohos_prebuilt_etc("signing_cert.crt") {
60  source = "config/signing_cert.crt"
61  module_install_dir = "etc/certificate"
62  install_images = [
63    "system",
64    "updater",
65  ]
66  part_name = "device_rk3588"
67}
68
69ohos_prebuilt_etc("fstab.updater") {
70  source = "config/fstab.updater"
71  install_images = [ "updater" ]
72  part_name = "device_rk3588"
73}
74
75group("updater_files") {
76  deps = [
77    ":fstab.updater",
78    ":signing_cert.crt",
79    ":updater_faultloggerd.cfg",
80    ":updater_hilog.cfg",
81    ":updater_init.cfg",
82    ":updater_init_dayu210_usb.cfg",
83    ":updater_init_usb.cfg",
84    ":updater_init_usb_configfs.cfg",
85  ]
86}
87