Skip to content

Commit e8e6d70

Browse files
committed
Merge branch 'example/blemesh_bridge_platform_update' into 'main'
blemesh_bridge: sync nimble/BLEManagerImpl.cpp for blemesh_bridge See merge request app-frameworks/esp-matter!652
2 parents 8b7d90a + b6ddb30 commit e8e6d70

File tree

3 files changed

+622
-33
lines changed

3 files changed

+622
-33
lines changed

examples/common/blemesh_platform/platform/ESP32_custom/BUILD.gn

+62-9
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ static_library("ESP32_custom") {
114114
"${chip_root}/src/setup_payload",
115115
]
116116

117-
public = [ "${chip_root}/src/credentials/DeviceAttestationCredsProvider.h" ]
117+
public = [
118+
"${chip_root}/src/credentials/CHIPCert.h",
119+
"${chip_root}/src/credentials/DeviceAttestationCredsProvider.h",
120+
]
118121

119122
public_deps = [
120123
"${chip_root}/src/crypto",
@@ -132,19 +135,31 @@ static_library("ESP32_custom") {
132135
if (chip_enable_chipoble) {
133136
sources += [
134137
"BLEManagerImpl.h",
138+
"ChipDeviceScanner.h",
135139
]
136140
}
137141

142+
if (chip_enable_ble_controller) {
143+
sources += [ "ChipDeviceScanner.h" ]
144+
}
145+
138146
if (chip_bt_nimble_enabled) {
139-
sources += [
140-
"nimble/BLEManagerImpl.cpp",
141-
]
147+
sources += [ "nimble/BLEManagerImpl.cpp" ]
148+
if (chip_enable_ble_controller) {
149+
sources += [
150+
"nimble/ChipDeviceScanner.cpp",
151+
"nimble/blecent.h",
152+
"nimble/misc.c",
153+
"nimble/peer.c",
154+
]
155+
}
142156
}
143157

144158
if (chip_bt_bluedroid_enabled) {
145-
sources += [
146-
"bluedroid/BLEManagerImpl.cpp",
147-
]
159+
sources += [ "bluedroid/BLEManagerImpl.cpp" ]
160+
if (chip_enable_ble_controller) {
161+
sources += [ "bluedroid/ChipDeviceScanner.cpp" ]
162+
}
148163
}
149164

150165
if (chip_enable_wifi) {
@@ -159,6 +174,9 @@ static_library("ESP32_custom") {
159174
"WiFiDnssdImpl.h",
160175
]
161176
}
177+
if (chip_mdns == "minimal") {
178+
sources += [ "ESP32EndpointQueueFilter.h" ]
179+
}
162180
if (chip_enable_route_hook) {
163181
sources += [
164182
"route_hook/ESP32RouteHook.c",
@@ -169,15 +187,34 @@ static_library("ESP32_custom") {
169187
}
170188
}
171189

190+
if (chip_mdns == "platform") {
191+
sources += [ "DnssdImpl.cpp" ]
192+
}
193+
172194
if (chip_enable_ethernet) {
173195
sources += [
174196
"ConnectivityManagerImpl_Ethernet.cpp",
175197
"NetworkCommissioningDriver_Ethernet.cpp",
176198
]
177199
}
178200

179-
if (chip_mdns == "platform") {
180-
sources += [ "DnssdImpl.cpp" ]
201+
if (chip_enable_openthread) {
202+
sources += [
203+
"${chip_root}/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp",
204+
"${chip_root}/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.h",
205+
"${chip_root}/src/platform/OpenThread/OpenThreadUtils.cpp",
206+
"OpenthreadLauncher.cpp",
207+
"OpenthreadLauncher.h",
208+
"ThreadStackManagerImpl.cpp",
209+
"ThreadStackManagerImpl.h",
210+
]
211+
if (chip_mdns == "platform") {
212+
sources += [
213+
"${chip_root}/src/platform/OpenThread/OpenThreadDnssdImpl.cpp",
214+
"${chip_root}/src/platform/OpenThread/OpenThreadDnssdImpl.h",
215+
]
216+
}
217+
configs -= [ "${chip_root}/build/config/compiler:warnings_default" ]
181218
}
182219

183220
if (chip_use_factory_data_provider) {
@@ -193,4 +230,20 @@ static_library("ESP32_custom") {
193230
"ESP32DeviceInfoProvider.h",
194231
]
195232
}
233+
234+
if (chip_use_secure_cert_dac_provider) {
235+
sources += [
236+
"ESP32SecureCertDACProvider.cpp",
237+
"ESP32SecureCertDACProvider.h",
238+
]
239+
}
240+
241+
if (chip_use_esp32_ecdsa_peripheral) {
242+
sources += [
243+
"ESP32CHIPCryptoPAL.cpp",
244+
"ESP32CHIPCryptoPAL.h",
245+
]
246+
}
247+
248+
cflags = [ "-Wconversion" ]
196249
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../connectedhomeip/connectedhomeip/src/platform/ESP32/ESP32EndpointQueueFilter.h

0 commit comments

Comments
 (0)