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 = [ vendor_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 = [ vendor_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 = [ vendor_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-bootImage.xml" ] 49 } 50 outputs = [ "$root_build_dir/packages/phone/images/Hi3516DV300-emmc.xml" ] 51} 52 53if (enable_ramdisk) { 54 ohos_copy("ohos.its") { 55 sources = [ "../updater/ohos.its" ] 56 outputs = [ "$root_build_dir/ohos.its" ] 57 } 58 ohos_copy("fstab.required") { 59 sources = [ "../updater/config/fstab.Hi3516DV300" ] 60 outputs = [ "$root_build_dir/fstab.required" ] 61 } 62} 63 64group("sys_files") { 65 deps = [ 66 ":Hi3516DV300-emmc.xml", 67 ":fstab.Hi3516DV300", 68 ":logo.rgb", 69 ":u-boot-hi3516dv300_emmc.bin", 70 ":vb_config_user.ini", 71 ] 72 if (enable_ramdisk) { 73 deps += [ 74 ":fstab.required", 75 ":ohos.its", 76 ] 77 } 78} 79