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("init.Hi3516DV300.rc") { 17 source = "rootfs/init.Hi3516DV300.rc" 18 module_install_dir = "etc/init" 19 install_images = [ "vendor" ] 20 part_name = "hisilicon_products" 21} 22 23ohos_prebuilt_etc("init.Hi3516DV300.usb.rc") { 24 source = "rootfs/init.Hi3516DV300.usb.rc" 25 module_install_dir = "etc/init" 26 install_images = [ "vendor" ] 27 part_name = "hisilicon_products" 28} 29 30ohos_prebuilt_etc("ueventd.rc") { 31 source = "rootfs/ueventd.rc" 32 install_images = [ "vendor" ] 33 module_install_dir = "./" 34 part_name = "hisilicon_products" 35} 36 37ohos_prebuilt_etc("fstab.Hi3516DV300") { 38 source = "vendor/etc/fstab.Hi3516DV300" 39 module_install_dir = "etc" 40 install_images = [ "vendor" ] 41 part_name = "hisilicon_products" 42} 43 44ohos_prebuilt_etc("vb_config_user.ini") { 45 source = "vendor/etc/vb_config_user.ini" 46 module_install_dir = "./" 47 install_images = [ "vendor" ] 48 part_name = "hisilicon_products" 49} 50 51ohos_copy("u-boot-hi3516dv300_emmc.bin") { 52 sources = [ "//device/hisilicon/hi3516dv300/sdk_linux/open_source/bin/u-boot-hi3516dv300_emmc.bin" ] 53 outputs = 54 [ "$root_build_dir/packages/phone/images/u-boot-hi3516dv300_emmc.bin" ] 55} 56 57ohos_copy("Hi3516DV300-emmc.xml") { 58 sources = [ "Hi3516DV300-emmc.xml" ] 59 outputs = [ "$root_build_dir/packages/phone/images/Hi3516DV300-emmc.xml" ] 60} 61 62group("rc_files") { 63 deps = [ 64 ":Hi3516DV300-emmc.xml", 65 ":u-boot-hi3516dv300_emmc.bin", 66 ":fstab.Hi3516DV300", 67 ":init.Hi3516DV300.rc", 68 ":init.Hi3516DV300.usb.rc", 69 ":ueventd.rc", 70 ":vb_config_user.ini", 71 ] 72} 73