1# Copyright (C) 2021 HiHope Open Source Organization . 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.rk3568.cfg") { 17 source = "init.rk3568.cfg" 18 part_name = "rockchip_products" 19 install_images = [ chipset_base_dir ] 20 install_enable = true 21} 22 23ohos_prebuilt_executable("weston.cfg") { 24 install_enable = true 25 source = "weston.cfg" 26 module_install_dir = "etc/init" 27 install_images = [ chipset_base_dir ] 28 part_name = "rockchip_products" 29} 30 31ohos_prebuilt_etc("init.rk3568.usb.cfg") { 32 source = "init.rk3568.usb.cfg" 33 part_name = "rockchip_products" 34 install_images = [ chipset_base_dir ] 35 install_enable = true 36} 37 38ohos_prebuilt_etc("fstab.rk3568") { 39 source = "fstab.rk3568" 40 part_name = "rockchip_products" 41 install_images = [ vendor_base_dir ] 42 install_enable = true 43} 44 45if (enable_ramdisk) { 46 ohos_copy("fstab.required") { 47 sources = [ "fstab.rk3568" ] 48 outputs = [ "$root_build_dir/fstab.required" ] 49 } 50 ohos_copy("ramdisk_resource_config.ini") { 51 sources = [ "ramdisk_resource_config.ini" ] 52 outputs = [ "$product_output_dir/phone/ramdisk_resource_config.ini" ] 53 } 54} else { 55 ohos_prebuilt_etc("fstab.required") { 56 source = "fstab.required" 57 part_name = "rockchip_products" 58 install_images = [ "system" ] 59 install_enable = true 60 } 61} 62 63group("init_configs") { 64 deps = [ 65 ":fstab.required", 66 ":fstab.rk3568", 67 ":init.rk3568.cfg", 68 ":init.rk3568.usb.cfg", 69 ":weston.cfg", 70 ] 71 if (enable_ramdisk) { 72 deps += [ ":ramdisk_resource_config.ini" ] 73 } 74} 75