-
Notifications
You must be signed in to change notification settings - Fork 0
/
wifi_bt_common.mk
132 lines (119 loc) · 4.73 KB
/
wifi_bt_common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
ifneq ($(strip $(TARGET_BOARD_PLATFORM)), sofia3gr)
BOARD_CONNECTIVITY_VENDOR := Broadcom
BOARD_CONNECTIVITY_MODULE := ap6xxx
endif
# Wifi related defines
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), MediaTek)
FORCE_WIFI_WORK_AS_ANDROID4_2 := false
BUILD_MEDIATEK_RFTEST_TOOL := false
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), combo_mt66xx)
BOARD_MEDIATEK_USES_GPS := true
combo_config := hardware/mediatek/config/$(strip $(BOARD_CONNECTIVITY_MODULE))/board_config.mk
include $(combo_config)
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), mt5931_6622)
combo_config := hardware/mediatek/config/$(strip $(BOARD_CONNECTIVITY_MODULE))/board_config.mk
include $(combo_config)
endif
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), Broadcom)
FORCE_WIFI_WORK_AS_ANDROID4_2 := false
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcm4329.bin"
WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcm4329_p2p.bin"
WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcm4329_apsta.bin"
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), RealTek)
FORCE_WIFI_WORK_AS_ANDROID4_2 := false
BOARD_WIFI_VENDOR := realtek
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl
BOARD_WLAN_DEVICE := realtek
WIFI_DRIVER_FW_PATH_STA := ""
WIFI_DRIVER_FW_PATH_P2P := ""
WIFI_DRIVER_FW_PATH_AP := ""
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), Espressif)
FORCE_WIFI_WORK_AS_ANDROID4_2 := false
BOARD_WIFI_VENDOR := Espressif
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_esp
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_esp
BOARD_WLAN_DEVICE := esp8089
WIFI_DRIVER_FW_PATH_STA := ""
WIFI_DRIVER_FW_PATH_P2P := ""
WIFI_DRIVER_FW_PATH_AP := ""
endif
# bluetooth support
BLUETOOTH_USE_BPLUS := false
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), Broadcom)
BLUETOOTH_USE_BPLUS := false
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM_RK := true
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), ap6xxx_gps)
BLUETOOTH_USE_BPLUS := true
BLUETOOTH_ENABLE_FM := false
endif
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), RealTek)
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), rtl8723as)
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/rockchip/$(TARGET_BOARD_PLATFORM)/bluetooth
BLUETOOTH_HCI_USE_RTK_H5 := true
endif
ifeq ($(findstring rtl8723bs, $(BOARD_CONNECTIVITY_MODULE)), rtl8723bs)
BOARD_HAVE_BLUETOOTH := true
BLUETOOTH_HCI_USE_RTK_H5 := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/common/bluetooth/libbt_rtk8723bs/
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), rtl8723au)
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/rockchip/$(TARGET_BOARD_PLATFORM)/bluetooth
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), rtl8723bu)
BOARD_HAVE_BLUETOOTH := true
#BLUETOOTH_HCI_USE_RTK_H5 := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/rockchip/$(TARGET_BOARD_PLATFORM)/bluetooth
endif
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), MediaTek)
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), combo_mt66xx)
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := hardware/mediatek/bt/combo_mt66xx/
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), mt5931_6622)
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := hardware/mediatek/bt/mt5931_6622/
endif
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), esp8089_bk3515)
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/rockchip/$(TARGET_BOARD_PLATFORM)/bluetooth
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), mt6622)
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := hardware/mediatek/bt/mt5931_6622/
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), rda587x)
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/rockchip/$(TARGET_BOARD_PLATFORM)/bluetooth
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), MediaTek_mt7601)
mt7601_config := hardware/mediatek/config/mt7601/board_config.mk
include $(mt7601_config)
BOARD_HAVE_BLUETOOTH := false
FORCE_WIFI_WORK_AS_ANDROID4_2 := false
BUILD_MEDIATEK_RFTEST_TOOL := false
endif
# bluetooth end