Skip to content

Commit 9bba7ec

Browse files
committed
fix(wifi_remote): Fixup cmake
1 parent e1cd459 commit 9bba7ec

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

components/esp_wifi_remote/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ endif()
6767
target_link_libraries(${wifi} PUBLIC ${COMPONENT_LIB})
6868

6969
if(CONFIG_ESP_WIFI_REMOTE_EAP_ENABLED)
70-
target_link_libraries(${wifi} PUBLIC wpa_supplicant)
70+
idf_component_optional_requires(PUBLIC wpa_supplicant)
71+
# target_link_libraries(${COMPONENT_LIB} PUBLIC wpa_supplicant)
7172
endif()

components/esp_wifi_remote/scripts/generate_and_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_type(self, node, suffix='param'):
4141
if node.type.quals:
4242
quals = ' '.join(node.type.quals)
4343
if node.type.type.names:
44-
type = node.type.type.names[0]
44+
type = ' '.join(node.type.type.names)
4545
return quals, type, typename
4646
if isinstance(node.type, c_ast.PtrDecl):
4747
quals, type, name = self.get_type(node.type, 'ptr')
@@ -298,9 +298,9 @@ def generate_remote_eap_api(function_prototypes, idf_ver_dir, component_path):
298298
with open(eap_source, 'w') as eap, open(remote_source, 'w') as remote:
299299
eap.write(COPYRIGHT_HEADER)
300300
eap.write('#include "esp_eap_client.h"\n')
301-
eap.write('#include "esp_eap_client_remote.h"\n')
301+
eap.write('#include "esp_eap_client_remote_api.h"\n')
302302
remote.write(COPYRIGHT_HEADER)
303-
remote.write('#include "esp_eap_client_remote.h"\n')
303+
remote.write('#include "esp_eap_client_remote_api.h"\n')
304304
remote.write('#include "esp_log.h"\n\n')
305305
remote.write('#define WEAK __attribute__((weak))\n')
306306
remote.write('#define LOG_UNSUPPORTED_AND_RETURN(ret) ESP_LOGW("esp_eap_client_remote_weak", "%s unsupported", __func__); \\\n return ret;\n')

0 commit comments

Comments
 (0)