# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") ohos_prebuilt_etc("fstab.Hi3516DV300") { source = "../updater/config/fstab.Hi3516DV300" module_install_dir = "etc" install_images = [ chipset_base_dir ] part_name = "hisilicon_products" } ohos_prebuilt_etc("vb_config_user.ini") { source = "../updater/config/vb_config_user.ini" module_install_dir = "./" install_images = [ chipset_base_dir ] part_name = "hisilicon_products" } ohos_prebuilt_etc("logo.rgb") { source = "../updater/logo.rgb" module_install_dir = "./" install_images = [ chipset_base_dir ] part_name = "hisilicon_products" } ohos_copy("u-boot-hi3516dv300_emmc.bin") { sources = [ "//device/soc/hisilicon/hi3516dv300/uboot/u-boot-hi3516dv300_emmc.bin" ] outputs = [ "$root_build_dir/packages/phone/images/u-boot-hi3516dv300_emmc.bin" ] } ohos_copy("Hi3516DV300-emmc.xml") { if (!enable_ramdisk) { sources = [ "Hi3516DV300-emmc-uImage.xml" ] } else { sources = [ "Hi3516DV300-emmc-ramdiskImage.xml" ] } outputs = [ "$root_build_dir/packages/phone/images/Hi3516DV300-emmc.xml" ] } group("sys_files") { deps = [ ":Hi3516DV300-emmc.xml", ":fstab.Hi3516DV300", ":logo.rgb", ":u-boot-hi3516dv300_emmc.bin", ":vb_config_user.ini", ] }