Skip to content

Commit e6fc2be

Browse files
danieldegrassehenrikbrixandersen
authored andcommitted
net: l2: wifi: add explicit dependency on "app" target for pem headers
Generated PEM headers need to be created before we build the WiFi shell when WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE is enabled, so add an explicit dependency on the app target to be certain these headers are created Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent a5ec0bd commit e6fc2be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

subsys/net/l2/wifi/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ file(MAKE_DIRECTORY ${gen_dir})
3232
# convert .pem files to array data at build time
3333
zephyr_include_directories(${gen_inc_dir})
3434

35+
if (CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE)
3536
generate_inc_file_for_target(
3637
app
3738
${ZEPHYR_BASE}/samples/net/wifi/test_certs/client.pem
@@ -67,3 +68,9 @@ generate_inc_file_for_target(
6768
${ZEPHYR_BASE}/samples/net/wifi/test_certs/ca2.pem
6869
${gen_dir}/ca2.pem.inc
6970
)
71+
72+
# Add explicit dependency on app target for ZEPHYR_CURRENT_LIBRARY, so these
73+
# headers are generated at the correct point in the build
74+
add_dependencies(${ZEPHYR_CURRENT_LIBRARY} app)
75+
76+
endif() # CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE

0 commit comments

Comments
 (0)