• 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
16ohos_prebuilt_etc("updater_init.cfg") {
17  source = "init.cfg"
18  install_images = [ "updater" ]
19  install_enable = true
20  part_name = "unionman_products"
21}
22
23ohos_prebuilt_etc("updater_usb_init.cfg") {
24  source = "init.usb.cfg"
25  install_images = [ "updater" ]
26  install_enable = true
27  part_name = "unionman_products"
28}
29
30ohos_prebuilt_etc("updater_init_usb_configfs.cfg") {
31  source = "init.usb.configfs.cfg"
32  install_images = [ "updater" ]
33  install_enable = true
34  part_name = "unionman_products"
35}
36
37ohos_prebuilt_etc("signing_cert.crt") {
38  source = "signing_cert.crt"
39  module_install_dir = "etc/certificate"
40  install_images = [ "updater" ]
41  install_enable = true
42  part_name = "unionman_products"
43}
44
45ohos_prebuilt_etc("fstab.updater") {
46  source = "fstab.updater"
47  install_images = [ "updater" ]
48  install_enable = true
49  part_name = "unionman_products"
50}
51
52if (enable_ramdisk) {
53  ohos_copy("updater_ramdisk_resource_config.ini") {
54    sources = [ "updater_ramdisk_resource_config.ini" ]
55    outputs =
56        [ "$product_output_dir/phone/updater_ramdisk_resource_config.ini" ]
57  }
58}
59
60group("updater_files") {
61  deps = [
62    ":fstab.updater",
63    ":signing_cert.crt",
64    ":updater_init.cfg",
65    ":updater_init_usb_configfs.cfg",
66    ":updater_usb_init.cfg",
67  ]
68  if (enable_ramdisk) {
69    deps += [ ":updater_ramdisk_resource_config.ini" ]
70  }
71}
72