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. 13import("//build/ohos.gni") 14 15AP6XXX_ETC_DIR = "//device/soc/rockchip/rk3568/hardware/wifi/ap6xxx" 16DNS_CONFIG_DIR = "//device/soc/rockchip/rk3568/hardware/wifi" 17 18ohos_prebuilt_etc("clm_bcm43752a2_ag.blob") { 19 source = "$AP6XXX_ETC_DIR/clm_bcm43752a2_ag.blob" 20 install_images = [ chipset_base_dir ] 21 relative_install_dir = "firmware" 22 part_name = "rockchip_products" 23 install_enable = true 24} 25 26ohos_prebuilt_etc("fw_bcm43752a2_ag_apsta.bin") { 27 source = "$AP6XXX_ETC_DIR/fw_bcm43752a2_ag_apsta.bin" 28 install_images = [ chipset_base_dir ] 29 relative_install_dir = "firmware" 30 part_name = "rockchip_products" 31 install_enable = true 32} 33 34ohos_prebuilt_etc("fw_bcm43752a2_ag.bin") { 35 source = "$AP6XXX_ETC_DIR/fw_bcm43752a2_ag.bin" 36 install_images = [ chipset_base_dir ] 37 relative_install_dir = "firmware" 38 part_name = "rockchip_products" 39 install_enable = true 40} 41 42ohos_prebuilt_etc("nvram_ap6275s.txt") { 43 source = "$AP6XXX_ETC_DIR/nvram_ap6275s.txt" 44 install_images = [ chipset_base_dir ] 45 relative_install_dir = "firmware" 46 part_name = "rockchip_products" 47 install_enable = true 48} 49 50ohos_prebuilt_etc("resolv.conf") { 51 source = "$DNS_CONFIG_DIR/etc/resolv.conf" 52 install_images = [ "system" ] 53 part_name = "rockchip_products" 54 install_enable = true 55} 56 57group("ap6xxx") { 58 deps = [ 59 ":clm_bcm43752a2_ag.blob", 60 ":fw_bcm43752a2_ag.bin", 61 ":fw_bcm43752a2_ag_apsta.bin", 62 ":nvram_ap6275s.txt", 63 ":resolv.conf", 64 ] 65} 66