1# Copyright (c) 2021-2022 iSoftStone Device Co., Ltd. 2# 3# HDF is dual licensed: you can use it either under the terms of 4# the GPL, or the BSD license, at your option. 5# See the LICENSE file in the root of this repository for complete details. 6 7import("//build/ohos.gni") 8 9ohos_prebuilt_etc("init.rk3399.cfg") { 10 source = "init.rk3399.cfg" 11 part_name = "rockchip_products" 12 install_images = [ chipset_base_dir ] 13 install_enable = true 14} 15 16ohos_prebuilt_executable("weston.cfg") { 17 install_enable = true 18 source = "weston.cfg" 19 module_install_dir = "etc/init" 20 install_images = [ chipset_base_dir ] 21 part_name = "rockchip_products" 22} 23 24ohos_prebuilt_etc("init.rk3399.usb.cfg") { 25 source = "init.rk3399.usb.cfg" 26 part_name = "rockchip_products" 27 install_images = [ chipset_base_dir ] 28 install_enable = true 29} 30 31ohos_prebuilt_etc("fstab.rk3399") { 32 source = "fstab.rk3399" 33 part_name = "rockchip_products" 34 install_images = [ chipset_base_dir ] 35 install_enable = true 36} 37 38if (enable_ramdisk) { 39 ohos_copy("fstab.required") { 40 sources = [ "fstab.rk3399" ] 41 outputs = [ "$root_build_dir/fstab.required" ] 42 } 43 ohos_copy("ramdisk_resource_config.ini") { 44 sources = [ "ramdisk_resource_config.ini" ] 45 outputs = [ "$root_build_dir/../../build/ohos/images/mkimage/ramdisk_resource_config.ini" ] 46 } 47} else { 48 ohos_prebuilt_etc("fstab.required") { 49 source = "fstab.required" 50 part_name = "rockchip_products" 51 install_images = [ "system" ] 52 install_enable = true 53 } 54} 55 56group("init_configs") { 57 deps = [ 58 ":fstab.required", 59 ":fstab.rk3399", 60 ":init.rk3399.cfg", 61 ":init.rk3399.usb.cfg", 62 ":weston.cfg", 63 ] 64 if (enable_ramdisk) { 65 deps += [ ":ramdisk_resource_config.ini" ] 66 } 67} 68