Merge branch 'bugfix/linux_wifi_mock' into 'master'

fix(linux): Fixed esp_wifi mock build test

See merge request espressif/esp-idf!28607
This commit is contained in:
Jakob Hasse 2024-01-23 18:43:12 +08:00
commit 273324c635
3 changed files with 24 additions and 2 deletions

View File

@ -6,8 +6,7 @@ idf_component_get_property(original_esp_netif_dir esp_netif COMPONENT_OVERRIDEN_
set(include_dirs
"include"
"${original_esp_netif_dir}/include"
"${original_esp_netif_dir}/linux/stubs/include")
"${original_esp_netif_dir}/include")
idf_component_mock(INCLUDE_DIRS ${include_dirs}
REQUIRES esp_event

View File

@ -19,4 +19,21 @@ menu "Wi-Fi"
range 0 17
default 7
choice ESP_WIFI_MGMT_RX_BUFFER
prompt "Type of WiFi RX MGMT buffers"
default ESP_WIFI_DYNAMIC_RX_MGMT_BUFFER
help
This is just a placeholder configuration for mocking the WiFi driver.
config ESP_WIFI_STATIC_RX_MGMT_BUFFER
bool "Static"
config ESP_WIFI_DYNAMIC_RX_MGMT_BUFFER
bool "Dynamic"
endchoice
config ESP_WIFI_DYNAMIC_RX_MGMT_BUF
int
default 0 if ESP_WIFI_STATIC_RX_MGMT_BUFFER
default 1 if ESP_WIFI_DYNAMIC_RX_MGMT_BUFFER
endmenu # Wi-Fi

View File

@ -24,6 +24,12 @@ tools/test_apps/linux_compatible/linux_freertos:
enable:
- if: IDF_TARGET == "linux"
tools/test_apps/linux_compatible/wifi_build_test:
enable:
- if: IDF_TARGET == "linux"
disable_test:
- if: IDF_TARGET == "linux"
tools/test_apps/peripherals/i2c_wifi:
disable:
- if: SOC_I2C_SUPPORTED != 1 or SOC_WIFI_SUPPORTED != 1