1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15 16ohos_prebuilt_etc("fstab.Hi3516DV300") { 17 source = "../updater/config/fstab.Hi3516DV300" 18 module_install_dir = "etc" 19 install_images = [ chipset_base_dir ] 20 part_name = "hisilicon_products" 21} 22 23ohos_prebuilt_etc("vb_config_user.ini") { 24 source = "../updater/config/vb_config_user.ini" 25 module_install_dir = "./" 26 install_images = [ chipset_base_dir ] 27 part_name = "hisilicon_products" 28} 29 30ohos_prebuilt_etc("logo.rgb") { 31 source = "../updater/logo.rgb" 32 module_install_dir = "./" 33 install_images = [ chipset_base_dir ] 34 part_name = "hisilicon_products" 35} 36 37ohos_copy("u-boot-hi3516dv300_emmc.bin") { 38 sources = 39 [ "//device/soc/hisilicon/hi3516dv300/uboot/u-boot-hi3516dv300_emmc.bin" ] 40 outputs = 41 [ "$root_build_dir/packages/phone/images/u-boot-hi3516dv300_emmc.bin" ] 42} 43 44ohos_copy("Hi3516DV300-emmc.xml") { 45 if (!enable_ramdisk) { 46 sources = [ "Hi3516DV300-emmc-uImage.xml" ] 47 } else { 48 sources = [ "Hi3516DV300-emmc-ramdiskImage.xml" ] 49 } 50 outputs = [ "$root_build_dir/packages/phone/images/Hi3516DV300-emmc.xml" ] 51} 52 53group("sys_files") { 54 deps = [ 55 ":Hi3516DV300-emmc.xml", 56 ":fstab.Hi3516DV300", 57 ":logo.rgb", 58 ":u-boot-hi3516dv300_emmc.bin", 59 ":vb_config_user.ini", 60 ] 61} 62