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_ueventd_cfg = "//base/startup/init/services/etc/ueventd.cfg" 178d6344f9Sopenharmony_ci 188d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_ueventd.cfg") { 198d6344f9Sopenharmony_ci source = "${updater_ueventd_cfg}" 208d6344f9Sopenharmony_ci install_images = [ "updater" ] 218d6344f9Sopenharmony_ci part_name = "rockchip_products" 228d6344f9Sopenharmony_ci} 238d6344f9Sopenharmony_ci 248d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_init.cfg") { 258d6344f9Sopenharmony_ci source = "config/init.cfg" 268d6344f9Sopenharmony_ci install_images = [ "updater" ] 278d6344f9Sopenharmony_ci part_name = "rockchip_products" 288d6344f9Sopenharmony_ci} 298d6344f9Sopenharmony_ci 308d6344f9Sopenharmony_ciohos_prebuilt_etc("updater_init_rk3568_usb.cfg") { 318d6344f9Sopenharmony_ci source = "config/init.rk3568.usb.cfg" 328d6344f9Sopenharmony_ci install_images = [ "updater" ] 338d6344f9Sopenharmony_ci part_name = "rockchip_products" 348d6344f9Sopenharmony_ci} 358d6344f9Sopenharmony_ci 368d6344f9Sopenharmony_ciohos_prebuilt_etc("signing_cert.crt") { 378d6344f9Sopenharmony_ci source = "config/signing_cert.crt" 388d6344f9Sopenharmony_ci module_install_dir = "etc/certificate" 398d6344f9Sopenharmony_ci install_images = [ 408d6344f9Sopenharmony_ci "system", 418d6344f9Sopenharmony_ci "updater", 428d6344f9Sopenharmony_ci ] 438d6344f9Sopenharmony_ci part_name = "rockchip_products" 448d6344f9Sopenharmony_ci} 458d6344f9Sopenharmony_ci 468d6344f9Sopenharmony_ciohos_prebuilt_etc("fstab.updater") { 478d6344f9Sopenharmony_ci source = "config/fstab.updater" 488d6344f9Sopenharmony_ci install_images = [ "updater" ] 498d6344f9Sopenharmony_ci part_name = "rockchip_products" 508d6344f9Sopenharmony_ci} 518d6344f9Sopenharmony_ci 528d6344f9Sopenharmony_cigroup("updater_files") { 538d6344f9Sopenharmony_ci deps = [ 548d6344f9Sopenharmony_ci ":fstab.updater", 558d6344f9Sopenharmony_ci ":signing_cert.crt", 568d6344f9Sopenharmony_ci ":updater_init.cfg", 578d6344f9Sopenharmony_ci ":updater_init_rk3568_usb.cfg", 588d6344f9Sopenharmony_ci ":updater_ueventd.cfg", 598d6344f9Sopenharmony_ci ] 608d6344f9Sopenharmony_ci} 61