• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 VYAGOO TECHNOLOGY 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")
14import("//build/ohos/kernel/kernel.gni")
15
16AP6212_BIN_DIR = "//device/soc/allwinner/t507/hardware/wifi/ap6212"
17
18ohos_prebuilt_etc("fw_bcm43438a0_bin") {
19  source = "$AP6212_BIN_DIR/fw_bcm43438a1.bin"
20  module_install_dir = "etc/firmware"
21  install_images = [ "vendor" ]
22  part_name = "allwinner_products"
23}
24
25ohos_prebuilt_etc("fw_bcm43438a0_apsta_bin") {
26  source = "$AP6212_BIN_DIR/fw_bcm43438a1_apsta.bin"
27  module_install_dir = "etc/firmware"
28  install_images = [ "vendor" ]
29  part_name = "allwinner_products"
30}
31
32ohos_prebuilt_etc("fw_bcm43438a0_p2p_bin") {
33  source = "$AP6212_BIN_DIR/fw_bcm43438a1_p2p.bin"
34  module_install_dir = "etc/firmware"
35  install_images = [ "vendor" ]
36  part_name = "allwinner_products"
37}
38
39ohos_prebuilt_etc("nvram_txt") {
40  source = "$AP6212_BIN_DIR/nvram.txt"
41  module_install_dir = "etc/firmware"
42  install_images = [ "vendor" ]
43  part_name = "allwinner_products"
44}
45
46ohos_prebuilt_etc("config_txt") {
47  source = "$AP6212_BIN_DIR/config.txt"
48  module_install_dir = "etc/firmware"
49  install_images = [ "vendor" ]
50  part_name = "allwinner_products"
51}
52
53ohos_prebuilt_etc("wpa_supplicant.conf") {
54  source = "$AP6212_BIN_DIR/wpa_supplicant.conf"
55  install_images = [ chipset_base_dir ]
56  module_install_dir = "misc/wifi/wpa_supplicant"
57  part_name = "allwinner_products"
58}
59
60ohos_prebuilt_etc("p2p_supplicant.conf") {
61  source = "$AP6212_BIN_DIR/p2p_supplicant.conf"
62  install_images = [ chipset_base_dir ]
63  module_install_dir = "misc/wifi/wpa_supplicant"
64  part_name = "allwinner_products"
65}
66
67group("xr829") {
68  deps = [
69    ":config_txt",
70    ":fw_bcm43438a0_apsta_bin",
71    ":fw_bcm43438a0_bin",
72    ":fw_bcm43438a0_p2p_bin",
73    ":nvram_txt",
74    ":p2p_supplicant.conf",
75    ":wpa_supplicant.conf",
76  ]
77}
78