18d6344f9Sopenharmony_ci# Copyright (c) 2022 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_ciohos_shared_library("rebootloader") {
178d6344f9Sopenharmony_ci  sources = [ "reboot_loader.c" ]
188d6344f9Sopenharmony_ci  external_deps = [ "init:libinit_module_engine" ]
198d6344f9Sopenharmony_ci  if (target_cpu == "arm64") {
208d6344f9Sopenharmony_ci    module_install_dir = "lib64/init/autorun"
218d6344f9Sopenharmony_ci  } else {
228d6344f9Sopenharmony_ci    module_install_dir = "lib/init/autorun"
238d6344f9Sopenharmony_ci  }
248d6344f9Sopenharmony_ci  part_name = "device_rk3588"
258d6344f9Sopenharmony_ci  install_enable = true
268d6344f9Sopenharmony_ci  install_images = [ chipset_base_dir ]
278d6344f9Sopenharmony_ci}
28