Skip to content

Commit

Permalink
net: l2: wifi: add explicit dependency on "app" target for pem headers
Browse files Browse the repository at this point in the history
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 <daniel.degrasse@nxp.com>
  • Loading branch information
danieldegrasse committed Oct 23, 2024
1 parent 6c12f87 commit 2ccfda9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions subsys/net/l2/wifi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ file(MAKE_DIRECTORY ${gen_dir})
# convert .pem files to array data at build time
zephyr_include_directories(${gen_inc_dir})

if (CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE)
generate_inc_file_for_target(
app
${ZEPHYR_BASE}/samples/net/wifi/test_certs/client.pem
Expand Down Expand Up @@ -67,3 +68,9 @@ generate_inc_file_for_target(
${ZEPHYR_BASE}/samples/net/wifi/test_certs/ca2.pem
${gen_dir}/ca2.pem.inc
)

# Add explicit dependency on app target for ZEPHYR_CURRENT_LIBRARY, so these
# headers are generated at the correct point in the build
add_dependencies(${ZEPHYR_CURRENT_LIBRARY} app)

endif() # CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE

0 comments on commit 2ccfda9

Please sign in to comment.