@@ -23,65 +23,65 @@ if (CONFIG_WIFI_NM)
23
23
zephyr_iterable_section (NAME wifi_nm_instance GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN} )
24
24
endif ()
25
25
26
- # Wi-Fi Enterprise test certificates handling
27
- set (gen_inc_dir ${ZEPHYR_BINARY_DIR} /misc/generated )
28
- set (gen_dir ${gen_inc_dir} /wifi_enterprise_test_certs )
29
- # Create output directory for test certs
30
- file (MAKE_DIRECTORY ${gen_dir} )
26
+ if (CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE AND CONFIG_NET_L2_WIFI_SHELL )
27
+ # Wi-Fi Enterprise test certificates handling
28
+ set (gen_inc_dir ${ZEPHYR_BINARY_DIR} /misc/generated )
29
+ set (gen_dir ${gen_inc_dir} /wifi_enterprise_test_certs )
30
+ # Create output directory for test certs
31
+ file (MAKE_DIRECTORY ${gen_dir} )
31
32
32
- # convert .pem files to array data at build time
33
- zephyr_include_directories (${gen_inc_dir} )
33
+ # convert .pem files to array data at build time
34
+ zephyr_include_directories (${gen_inc_dir} )
34
35
35
- if (CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE )
36
- generate_inc_file_for_target (
37
- app
38
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client.pem
39
- ${gen_dir} /client.pem.inc
40
- )
36
+ generate_inc_file_for_target (
37
+ app
38
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client.pem
39
+ ${gen_dir} /client.pem.inc
40
+ )
41
41
42
- generate_inc_file_for_target (
43
- app
44
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client-key.pem
45
- ${gen_dir} /client-key.pem.inc
46
- )
42
+ generate_inc_file_for_target (
43
+ app
44
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client-key.pem
45
+ ${gen_dir} /client-key.pem.inc
46
+ )
47
47
48
- generate_inc_file_for_target (
49
- app
50
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/ca.pem
51
- ${gen_dir} /ca.pem.inc
52
- )
48
+ generate_inc_file_for_target (
49
+ app
50
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/ca.pem
51
+ ${gen_dir} /ca.pem.inc
52
+ )
53
53
54
- generate_inc_file_for_target (
55
- app
56
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client2.pem
57
- ${gen_dir} /client2.pem.inc
58
- )
54
+ generate_inc_file_for_target (
55
+ app
56
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client2.pem
57
+ ${gen_dir} /client2.pem.inc
58
+ )
59
59
60
- generate_inc_file_for_target (
61
- app
62
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client-key2.pem
63
- ${gen_dir} /client-key2.pem.inc
64
- )
60
+ generate_inc_file_for_target (
61
+ app
62
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/client-key2.pem
63
+ ${gen_dir} /client-key2.pem.inc
64
+ )
65
65
66
- generate_inc_file_for_target (
67
- app
68
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/ca2.pem
69
- ${gen_dir} /ca2.pem.inc
70
- )
66
+ generate_inc_file_for_target (
67
+ app
68
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/ca2.pem
69
+ ${gen_dir} /ca2.pem.inc
70
+ )
71
71
72
- generate_inc_file_for_target (
73
- app
74
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/server.pem
75
- ${gen_dir} /server.pem.inc
76
- )
72
+ generate_inc_file_for_target (
73
+ app
74
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/server.pem
75
+ ${gen_dir} /server.pem.inc
76
+ )
77
77
78
- generate_inc_file_for_target (
79
- app
80
- ${ZEPHYR_BASE} /samples/net/wifi/test_certs/server-key.pem
81
- ${gen_dir} /server-key.pem.inc
82
- )
83
- # Add explicit dependency on app target for ZEPHYR_CURRENT_LIBRARY, so these
84
- # headers are generated at the correct point in the build
85
- add_dependencies (${ZEPHYR_CURRENT_LIBRARY} app )
78
+ generate_inc_file_for_target (
79
+ app
80
+ ${ZEPHYR_BASE} /samples/net/wifi/test_certs/server-key.pem
81
+ ${gen_dir} /server-key.pem.inc
82
+ )
86
83
87
- endif () # CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
84
+ # Add explicit dependency on app target for ZEPHYR_CURRENT_LIBRARY, so these
85
+ # headers are generated at the correct point in the build
86
+ add_dependencies (${ZEPHYR_CURRENT_LIBRARY} app )
87
+ endif () #CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE AND CONFIG_NET_L2_WIFI_SHELL
0 commit comments