18d6344f9Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
28d6344f9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
38d6344f9Sopenharmony_ci# you may not use this file except in compliance with the License.
48d6344f9Sopenharmony_ci# You may obtain a copy of the License at
58d6344f9Sopenharmony_ci#
68d6344f9Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
78d6344f9Sopenharmony_ci#
88d6344f9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
98d6344f9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
108d6344f9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118d6344f9Sopenharmony_ci# See the License for the specific language governing permissions and
128d6344f9Sopenharmony_ci# limitations under the License.
138d6344f9Sopenharmony_ci
148d6344f9Sopenharmony_ciimport("//build/ohos.gni")
158d6344f9Sopenharmony_ci
168d6344f9Sopenharmony_ciupdater_usb_init_cfg_path = "//base/startup/init/services/etc/init.usb.cfg"
178d6344f9Sopenharmony_ciupdater_init_usb_configfs_path_cfg =
188d6344f9Sopenharmony_ci    "//drivers/peripheral/usb/cfg/init.usb.configfs.cfg"
198d6344f9Sopenharmony_ciupdater_faultloggerd_cfg =
208d6344f9Sopenharmony_ci    "//base/hiviewdfx/faultloggerd/services/config/faultloggerd.cfg"
218d6344f9Sopenharmony_ciupdater_hilog_cfg = "//base/hiviewdfx/hilog/services/hilogd/etc/hilogd.cfg"
228d6344f9Sopenharmony_ci
238d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_hilog.cfg") {
248d6344f9Sopenharmony_ci  source = "${updater_hilog_cfg}"
258d6344f9Sopenharmony_ci  install_images = [ "updater" ]
268d6344f9Sopenharmony_ci  part_name = "device_rk3588"
278d6344f9Sopenharmony_ci}
288d6344f9Sopenharmony_ci
298d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_faultloggerd.cfg") {
308d6344f9Sopenharmony_ci  source = "${updater_faultloggerd_cfg}"
318d6344f9Sopenharmony_ci  install_images = [ "updater" ]
328d6344f9Sopenharmony_ci  part_name = "device_rk3588"
338d6344f9Sopenharmony_ci}
348d6344f9Sopenharmony_ci
358d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_init.cfg") {
368d6344f9Sopenharmony_ci  source = "config/init.cfg"
378d6344f9Sopenharmony_ci  install_images = [ "updater" ]
388d6344f9Sopenharmony_ci  part_name = "device_rk3588"
398d6344f9Sopenharmony_ci}
408d6344f9Sopenharmony_ci
418d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_init_usb.cfg") {
428d6344f9Sopenharmony_ci  source = "${updater_usb_init_cfg_path}"
438d6344f9Sopenharmony_ci  install_images = [ "updater" ]
448d6344f9Sopenharmony_ci  part_name = "device_rk3588"
458d6344f9Sopenharmony_ci}
468d6344f9Sopenharmony_ci
478d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_init_usb_configfs.cfg") {
488d6344f9Sopenharmony_ci  source = "${updater_init_usb_configfs_path_cfg}"
498d6344f9Sopenharmony_ci  install_images = [ "updater" ]
508d6344f9Sopenharmony_ci  part_name = "device_rk3588"
518d6344f9Sopenharmony_ci}
528d6344f9Sopenharmony_ci
538d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_init_dayu210_usb.cfg") {
548d6344f9Sopenharmony_ci  source = "config/init.dayu210.usb.cfg"
558d6344f9Sopenharmony_ci  install_images = [ "updater" ]
568d6344f9Sopenharmony_ci  part_name = "device_rk3588"
578d6344f9Sopenharmony_ci}
588d6344f9Sopenharmony_ci
598d6344f9Sopenharmony_ciohos_prebuilt_etc("signing_cert.crt") {
608d6344f9Sopenharmony_ci  source = "config/signing_cert.crt"
618d6344f9Sopenharmony_ci  module_install_dir = "etc/certificate"
628d6344f9Sopenharmony_ci  install_images = [
638d6344f9Sopenharmony_ci    "system",
648d6344f9Sopenharmony_ci    "updater",
658d6344f9Sopenharmony_ci  ]
668d6344f9Sopenharmony_ci  part_name = "device_rk3588"
678d6344f9Sopenharmony_ci}
688d6344f9Sopenharmony_ci
698d6344f9Sopenharmony_ciohos_prebuilt_etc("fstab.updater") {
708d6344f9Sopenharmony_ci  source = "config/fstab.updater"
718d6344f9Sopenharmony_ci  install_images = [ "updater" ]
728d6344f9Sopenharmony_ci  part_name = "device_rk3588"
738d6344f9Sopenharmony_ci}
748d6344f9Sopenharmony_ci
758d6344f9Sopenharmony_cigroup("updater_files") {
768d6344f9Sopenharmony_ci  deps = [
778d6344f9Sopenharmony_ci    ":fstab.updater",
788d6344f9Sopenharmony_ci    ":signing_cert.crt",
798d6344f9Sopenharmony_ci    ":updater_faultloggerd.cfg",
808d6344f9Sopenharmony_ci    ":updater_hilog.cfg",
818d6344f9Sopenharmony_ci    ":updater_init.cfg",
828d6344f9Sopenharmony_ci    ":updater_init_dayu210_usb.cfg",
838d6344f9Sopenharmony_ci    ":updater_init_usb.cfg",
848d6344f9Sopenharmony_ci    ":updater_init_usb_configfs.cfg",
858d6344f9Sopenharmony_ci  ]
868d6344f9Sopenharmony_ci}
87