Skip to content

Commit 9c79998

Browse files
committed
net: l2: wifi: Allow overriding test certs directory
Add support to set the test certificates directory for enterprise mode when an external certs directory is provided at build time. This change overrides the default certs folder if a different path is specified during build. This change is needed for sysbuild, the build already works as expected without it. Signed-off-by: Triveni Danda <[email protected]>
1 parent c8d9103 commit 9c79998

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/l2/wifi/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ if(CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE AND CONFIG_NET_L2_WIFI_SHELL)
2828
# Wi-Fi Enterprise test certificates handling
2929
set(gen_inc_dir ${ZEPHYR_BINARY_DIR}/misc/generated)
3030
set(gen_dir ${gen_inc_dir}/wifi_enterprise_test_certs)
31+
zephyr_get(WIFI_TEST_CERTS_DIR SYSBUILD GLOBAL)
32+
message("WIFI_TEST_CERTS_DIR is set to ${WIFI_TEST_CERTS_DIR}")
3133
if(NOT DEFINED WIFI_TEST_CERTS_DIR)
3234
set(WIFI_TEST_CERTS_DIR ${ZEPHYR_BASE}/samples/net/wifi/test_certs/rsa3k)
3335
endif()

0 commit comments

Comments
 (0)