File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -235,3 +235,7 @@ void emberAfWakeOnLanClusterInitCallback(EndpointId endpoint)
235
235
WakeOnLan::SetDefaultDelegate (endpoint, &wakeOnLanManager);
236
236
}
237
237
#endif
238
+
239
+ // No-op function, used to force linking this file,
240
+ // instead of the weak functions from other files
241
+ extern " C" void chef_include_stubs_impl (void ) {}
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ idf_component_register(PRIV_INCLUDE_DIRS
121
121
PRIV_REQUIRES chip nvs_flash bt console mbedtls QRCode tft screen-framework spidriver
122
122
SRC_DIRS ${SRC_DIRS_LIST} )
123
123
124
+ # Forces the linker to include common/stubs.cpp
125
+ target_link_libraries (${COMPONENT_LIB} INTERFACE "-u chef_include_stubs_impl" )
126
+
124
127
include ("${CHIP_ROOT} /build/chip/esp32/esp32_codegen.cmake" )
125
128
chip_app_component_codegen("${CHEF} /devices/${SAMPLE_NAME} .matter" )
126
129
chip_app_component_zapgen("${CHEF} /devices/${SAMPLE_NAME} .zap" )
You can’t perform that action at this time.
0 commit comments