• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 iSoftStone 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.
13import("//build/ohos.gni")
14
15AP6XXX_ETC_DIR = "//device/board/isoftstone/yangfan/kernel/drivers/wifi/ap6xxx"
16MODULES_DIR = "//device/board/isoftstone/yangfan/kernel/drivers/wifi/modules"
17DNS_CONFIG_DIR = "//device/board/isoftstone/yangfan/kernel/drivers/wifi"
18WIFI_LIB_DIR = "//device/board/isoftstone/yangfan/kernel/drivers/wifi/lib"
19WIFI_BIN_DIR = "//device/board/isoftstone/yangfan/kernel/drivers/wifi/bin"
20
21ohos_prebuilt_etc("clm_bcm43752a2_ag.blob") {
22  source = "$AP6XXX_ETC_DIR/clm_bcm43752a2_ag.blob"
23  install_images = [ chipset_base_dir ]
24  relative_install_dir = "firmware"
25  part_name = "rockchip_products"
26  install_enable = true
27}
28
29ohos_prebuilt_etc("fw_bcm43752a2_ag_apsta.bin") {
30  source = "$AP6XXX_ETC_DIR/fw_bcm43752a2_ag_apsta.bin"
31  install_images = [ chipset_base_dir ]
32  relative_install_dir = "firmware"
33  part_name = "rockchip_products"
34  install_enable = true
35}
36
37ohos_prebuilt_etc("fw_bcm43752a2_ag.bin") {
38  source = "$AP6XXX_ETC_DIR/fw_bcm43752a2_ag.bin"
39  install_images = [ chipset_base_dir ]
40  relative_install_dir = "firmware"
41  part_name = "rockchip_products"
42  install_enable = true
43}
44
45ohos_prebuilt_etc("nvram_ap6275s.txt") {
46  source = "$AP6XXX_ETC_DIR/nvram_ap6275s.txt"
47  install_images = [ chipset_base_dir ]
48  relative_install_dir = "firmware"
49  part_name = "rockchip_products"
50  install_enable = true
51}
52
53##43438 begin
54ohos_prebuilt_etc("fw_bcm43438a1.bin") {
55  source = "$AP6XXX_ETC_DIR/fw_bcm43438a1.bin"
56  install_images = [ chipset_base_dir ]
57  relative_install_dir = "firmware"
58  part_name = "rockchip_products"
59  install_enable = true
60}
61
62ohos_prebuilt_etc("fw_cyw43438_apsta.bin") {
63  source = "$AP6XXX_ETC_DIR/fw_cyw43438_apsta.bin"
64  install_images = [ chipset_base_dir ]
65  relative_install_dir = "firmware"
66  part_name = "rockchip_products"
67  install_enable = true
68}
69
70ohos_prebuilt_etc("fw_cyw43438_p2p.bin") {
71  source = "$AP6XXX_ETC_DIR/fw_cyw43438_p2p.bin"
72  install_images = [ chipset_base_dir ]
73  relative_install_dir = "firmware"
74  part_name = "rockchip_products"
75  install_enable = true
76}
77
78ohos_prebuilt_etc("nvram_ap6212a.txt") {
79  source = "$AP6XXX_ETC_DIR/nvram_ap6212a.txt"
80  install_images = [ chipset_base_dir ]
81  relative_install_dir = "firmware"
82  part_name = "rockchip_products"
83  install_enable = true
84}
85
86ohos_prebuilt_etc("cywdhd.ko") {
87  source = "$MODULES_DIR/cywdhd.ko"
88  install_images = [ chipset_base_dir ]
89  relative_install_dir = "modules"
90  part_name = "rockchip_products"
91  install_enable = true
92}
93
94ohos_prebuilt_etc("bcmdhd.ko") {
95  source = "$MODULES_DIR/bcmdhd.ko"
96  install_images = [ chipset_base_dir ]
97  relative_install_dir = "modules"
98  part_name = "rockchip_products"
99  install_enable = true
100}
101
102##43438 end
103
104ohos_prebuilt_etc("resolv.conf") {
105  source = "$DNS_CONFIG_DIR/etc/resolv.conf"
106  install_images = [ "system" ]
107  part_name = "rockchip_products"
108  install_enable = true
109}
110
111ohos_prebuilt_etc("hostapd.conf") {
112  source = "$DNS_CONFIG_DIR/etc/hostapd.conf"
113  install_images = [ "system" ]
114  part_name = "rockchip_products"
115  install_enable = true
116}
117
118ohos_prebuilt_executable("wpa_cli") {
119  install_enable = true
120  source = "$WIFI_BIN_DIR/wpa_cli"
121  module_install_dir = "bin"
122  install_images = [ "system" ]
123  part_name = "rockchip_products"
124}
125
126ohos_prebuilt_executable("wpa_supplicant") {
127  install_enable = true
128  source = "$WIFI_BIN_DIR/wpa_supplicant"
129  module_install_dir = "bin"
130  install_images = [ "system" ]
131  part_name = "rockchip_products"
132}
133
134ohos_prebuilt_executable("hostapd") {
135  install_enable = true
136  source = "$WIFI_BIN_DIR/hostapd"
137  module_install_dir = "bin"
138  install_images = [ "system" ]
139  part_name = "rockchip_products"
140}
141
142ohos_prebuilt_executable("hostapd_cli") {
143  install_enable = true
144  source = "$WIFI_BIN_DIR/hostapd_cli"
145  module_install_dir = "bin"
146  install_images = [ "system" ]
147  part_name = "rockchip_products"
148}
149
150ohos_prebuilt_shared_library("libwpa.z.so") {
151  source = "$WIFI_LIB_DIR/libwpa.z.so"
152  module_install_dir = "lib"
153  install_images = [ "system" ]
154  part_name = "rockchip_products"
155}
156
157ohos_prebuilt_shared_library("libwpa_client.z.so") {
158  source = "$WIFI_LIB_DIR/libwpa_client.z.so"
159  module_install_dir = "lib"
160  install_images = [ "system" ]
161  part_name = "rockchip_products"
162}
163
164ohos_prebuilt_shared_library("libnl_share.z.so") {
165  source = "$WIFI_LIB_DIR/libnl_share.z.so"
166  module_install_dir = "lib"
167  install_images = [ "system" ]
168  part_name = "rockchip_products"
169}
170
171group("ap6xxx") {
172  deps = [
173    ":bcmdhd.ko",
174    ":clm_bcm43752a2_ag.blob",
175    ":cywdhd.ko",
176    ":fw_bcm43438a1.bin",
177    ":fw_bcm43752a2_ag.bin",
178    ":fw_bcm43752a2_ag_apsta.bin",
179    ":fw_cyw43438_apsta.bin",
180    ":fw_cyw43438_p2p.bin",
181    ":hostapd",
182    ":hostapd.conf",
183    ":hostapd_cli",
184    ":libnl_share.z.so",
185    ":libwpa.z.so",
186    ":libwpa_client.z.so",
187    ":nvram_ap6212a.txt",
188    ":nvram_ap6275s.txt",
189    ":resolv.conf",
190    ":wpa_cli",
191    ":wpa_supplicant",
192  ]
193}
194