12fe4e5f8Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 22fe4e5f8Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 32fe4e5f8Sopenharmony_ci# you may not use this file except in compliance with the License. 42fe4e5f8Sopenharmony_ci# You may obtain a copy of the License at 52fe4e5f8Sopenharmony_ci# 62fe4e5f8Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 72fe4e5f8Sopenharmony_ci# 82fe4e5f8Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 92fe4e5f8Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 102fe4e5f8Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 112fe4e5f8Sopenharmony_ci# See the License for the specific language governing permissions and 122fe4e5f8Sopenharmony_ci# limitations under the License. 132fe4e5f8Sopenharmony_ci 142fe4e5f8Sopenharmony_ciimport("//build/ohos.gni") 152fe4e5f8Sopenharmony_ci 162fe4e5f8Sopenharmony_ciohos_prebuilt_etc("fstab.Hi3516DV300") { 172fe4e5f8Sopenharmony_ci source = "../updater/config/fstab.Hi3516DV300" 182fe4e5f8Sopenharmony_ci module_install_dir = "etc" 192fe4e5f8Sopenharmony_ci install_images = [ chipset_base_dir ] 202fe4e5f8Sopenharmony_ci part_name = "hisilicon_products" 212fe4e5f8Sopenharmony_ci} 222fe4e5f8Sopenharmony_ci 232fe4e5f8Sopenharmony_ciohos_prebuilt_etc("vb_config_user.ini") { 242fe4e5f8Sopenharmony_ci source = "../updater/config/vb_config_user.ini" 252fe4e5f8Sopenharmony_ci module_install_dir = "./" 262fe4e5f8Sopenharmony_ci install_images = [ chipset_base_dir ] 272fe4e5f8Sopenharmony_ci part_name = "hisilicon_products" 282fe4e5f8Sopenharmony_ci} 292fe4e5f8Sopenharmony_ci 302fe4e5f8Sopenharmony_ciohos_prebuilt_etc("logo.rgb") { 312fe4e5f8Sopenharmony_ci source = "../updater/logo.rgb" 322fe4e5f8Sopenharmony_ci module_install_dir = "./" 332fe4e5f8Sopenharmony_ci install_images = [ chipset_base_dir ] 342fe4e5f8Sopenharmony_ci part_name = "hisilicon_products" 352fe4e5f8Sopenharmony_ci} 362fe4e5f8Sopenharmony_ci 372fe4e5f8Sopenharmony_ciohos_copy("u-boot-hi3516dv300_emmc.bin") { 382fe4e5f8Sopenharmony_ci sources = 392fe4e5f8Sopenharmony_ci [ "//device/soc/hisilicon/hi3516dv300/uboot/u-boot-hi3516dv300_emmc.bin" ] 402fe4e5f8Sopenharmony_ci outputs = 412fe4e5f8Sopenharmony_ci [ "$root_build_dir/packages/phone/images/u-boot-hi3516dv300_emmc.bin" ] 422fe4e5f8Sopenharmony_ci} 432fe4e5f8Sopenharmony_ci 442fe4e5f8Sopenharmony_ciohos_copy("Hi3516DV300-emmc.xml") { 452fe4e5f8Sopenharmony_ci if (!enable_ramdisk) { 462fe4e5f8Sopenharmony_ci sources = [ "Hi3516DV300-emmc-uImage.xml" ] 472fe4e5f8Sopenharmony_ci } else { 482fe4e5f8Sopenharmony_ci sources = [ "Hi3516DV300-emmc-ramdiskImage.xml" ] 492fe4e5f8Sopenharmony_ci } 502fe4e5f8Sopenharmony_ci outputs = [ "$root_build_dir/packages/phone/images/Hi3516DV300-emmc.xml" ] 512fe4e5f8Sopenharmony_ci} 522fe4e5f8Sopenharmony_ci 532fe4e5f8Sopenharmony_cigroup("sys_files") { 542fe4e5f8Sopenharmony_ci deps = [ 552fe4e5f8Sopenharmony_ci ":Hi3516DV300-emmc.xml", 562fe4e5f8Sopenharmony_ci ":fstab.Hi3516DV300", 572fe4e5f8Sopenharmony_ci ":logo.rgb", 582fe4e5f8Sopenharmony_ci ":u-boot-hi3516dv300_emmc.bin", 592fe4e5f8Sopenharmony_ci ":vb_config_user.ini", 602fe4e5f8Sopenharmony_ci ] 612fe4e5f8Sopenharmony_ci} 62