1# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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/config/clang/clang.gni") 15import("//build/ohos.gni") 16 17print("khdvk_3566b_group in") 18group("khdvk_3566b_group") { 19 deps = [ 20 ":kernel", 21 "distributedhardware:distributedhardware", 22 "kernel/bluetooth:BCM4345C5.hcd", 23 "kernel/bluetooth:libbt_vendor", 24 "rootfs:init_configs", 25 "updater:updater_files", 26 "wifi:ap6xxx", 27 "//device/soc/rockchip/rk3566/hardware:hardware_group", 28 "//device/soc/rockchip/rk3566/hardware/display:display_buffer_model", 29 "//device/soc/rockchip/rk3566/hardware/display:display_composer_model", 30 ] 31} 32 33kernel_build_script_dir = "//kernel/linux/linux-5.10" 34kernel_source_dir = "//kernel/linux/linux-5.10" 35 36action("kernel") { 37 script = "kernel/build_kernel.sh" 38 sources = [ kernel_source_dir ] 39 product_path = "vendor/$product_company/$product_name" 40 41 outputs = [ "$root_build_dir/packages/phone/images" ] 42 args = [ 43 rebase_path(kernel_build_script_dir, root_build_dir), 44 rebase_path("$root_out_dir/../KERNEL_OBJ"), 45 rebase_path("$root_build_dir/packages/phone/images"), 46 rebase_path("//device/board/kaihong/khdvk_3566b"), 47 device_name, 48 product_path, 49 product_company, 50 ] 51} 52