Skip to content

Commit

Permalink
suit: Add warning about default VID/CID
Browse files Browse the repository at this point in the history
Add a warning if user tries to build an app with default VID and CID
values.

Ref: NCSDK-29986

Signed-off-by: Tomasz Chyrowicz <[email protected]>
  • Loading branch information
tomchy committed Nov 27, 2024
1 parent eb458fb commit d71648a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmake/sysbuild/suit_provisioning.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ function(generate_mpi_hex manifest_role)
return()
endif()

if(SB_CONFIG_SUIT_MPI_${manifest_role}_VENDOR_NAME STREQUAL "nordicsemi.com")
message(WARNING "
-----------------------------------------------------------
--- WARNING: Using default Vendor ID (nordicsemi.com). ---
--- It should not be used for production. ---
--- See SB_CONFIG_SUIT_MPI_${manifest_role}_VENDOR_NAME \t---
--- and SB_CONFIG_SUIT_MPI_${manifest_role}_CLASS_NAME \t---
-----------------------------------------------------------
\n"
)
endif()

MATH(
EXPR
SUIT_MPI_${manifest_role}_ADDRESS
Expand Down

0 comments on commit d71648a

Please sign in to comment.