Skip to content

Commit 9d1b874

Browse files
committed
fix(wifi_remote): Fixup version resolution
1 parent a5210a2 commit 9d1b874

File tree

26 files changed

+194
-13
lines changed

26 files changed

+194
-13
lines changed

components/esp_wifi_remote/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ if (IDF_VER_TAG)
2020
endif()
2121
endif()
2222

23-
# Generate Kconfig fragment to the project build dir to expand IDF_VER_DIR correctly
24-
set(_wifi_remote_kcfg_dir "${BUILD_DIR}/kconfig_fragments/esp_wifi_remote")
25-
file(MAKE_DIRECTORY "${_wifi_remote_kcfg_dir}")
26-
set(_wifi_remote_kcfg_fragment "${_wifi_remote_kcfg_dir}/Kconfig.version_select.in")
27-
28-
set(_kconfig_ver_fragment "# Auto-generated: do not edit\n")
29-
string(APPEND _kconfig_ver_fragment "orsource \"${IDF_VER_DIR}/Kconfig.slave_select.in\"\n")
30-
string(APPEND _kconfig_ver_fragment "orsource \"${IDF_VER_DIR}/Kconfig.soc_wifi_caps.in\"\n")
31-
string(APPEND _kconfig_ver_fragment "menu \"Wi-Fi configuration\"\norsource \"${IDF_VER_DIR}/Kconfig.wifi.in\"\nendmenu\n")
32-
file(WRITE "${_wifi_remote_kcfg_fragment}" "${_kconfig_ver_fragment}")
33-
3423
idf_component_get_property(wifi esp_wifi COMPONENT_LIB)
3524

3625
if(NOT CONFIG_ESP_WIFI_ENABLED AND NOT CONFIG_ESP_HOST_WIFI_ENABLED)

components/esp_wifi_remote/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ menu "Wi-Fi Remote"
66

77
if ESP_WIFI_REMOTE_ENABLED
88
# Resolve version-specific includes via generated fragment located in the build directory.
9-
osource "kconfig_fragments/esp_wifi_remote/Kconfig.version_select.in"
10-
orsource "./Kconfig.rpc.in"
9+
rsource "./Kconfig.$IDF_VERSION.in"
10+
rsource "./Kconfig.rpc.in"
1111

1212
config ESP_WIFI_REMOTE_EAP_ENABLED
1313
bool "Enable EAP client remote API"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.3/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.3/Kconfig.in"
6+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.3.1/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.3/Kconfig.in"
6+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.3.2/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.3/Kconfig.in"
6+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.3.3/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.3/Kconfig.in"
6+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.3.4/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.3/Kconfig.in"
6+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.4/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.4/Kconfig.in"
6+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.4.1/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.4/Kconfig.in"
6+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
orsource "./idf_tag_v5.4.2/Kconfig.in"
3+
4+
if !ESP_WIFI_REMOTE_IDF_SPECIFIC_ADDED
5+
rsource "./idf_v5.4/Kconfig.in"
6+
endif

0 commit comments

Comments
 (0)