Skip to content

[nrf fromlist] modules: Add VID and CID Kconfigs #3122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cmake/mcuboot.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ function(zephyr_mcuboot_tasks)
set(imgtool_args --key "${keyfile}" ${imgtool_args})
endif()

if(CONFIG_MCUBOOT_IMGTOOL_UUID_VID)
set(imgtool_args ${imgtool_args} --vid "${CONFIG_MCUBOOT_IMGTOOL_UUID_VID_NAME}")
endif()

if(CONFIG_MCUBOOT_IMGTOOL_UUID_CID)
set(imgtool_args ${imgtool_args} --cid "${CONFIG_MCUBOOT_IMGTOOL_UUID_CID_NAME}")
endif()

if(CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY)
# Use overwrite-only instead of swap upgrades.
set(imgtool_args --overwrite-only --align 1 ${imgtool_args})
Expand Down
32 changes: 32 additions & 0 deletions modules/Kconfig.mcuboot
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,38 @@ config MCUBOOT_IMGTOOL_OVERWRITE_ONLY
If enabled, --overwrite-only option passed to imgtool to avoid
adding the swap status area size when calculating overflow.

config MCUBOOT_IMGTOOL_UUID_VID
bool "Append vendor unique identifier TLV"
help
If enabled, --vid option passed to imgtool with the value set by
the MCUBOOT_IMGTOOL_UUID_VID_NAME option.

config MCUBOOT_IMGTOOL_UUID_VID_NAME
string "Vendor UUID"
depends on MCUBOOT_IMGTOOL_UUID_VID
help
The vendor unique identifier.
The following formats are supported:
- Domain name (i.e. amce.corp)
- Raw UUID (i.e. 12345678-1234-5678-1234-567812345678)

config MCUBOOT_IMGTOOL_UUID_CID
bool "Append image class unique identifier TLV"
help
If enabled, --cid option passed to imgtool with the value set by
the MCUBOOT_IMGTOOL_UUID_CID_NAME option.

config MCUBOOT_IMGTOOL_UUID_CID_NAME
string "Image class UUID"
depends on MCUBOOT_IMGTOOL_UUID_CID
help
The image class unique identifier.
The following formats are supported:
- Image class name (i.e. nRF5340_door_lock_btperipheral).
This format requires MCUBOOT_IMGTOOL_UUID_VID_NAME to be defined
as the VID UUID is used as the namespace for image class UUID.
- Raw UUID (i.e. 12345678-1234-5678-1234-567812345678)

config MCUBOOT_EXTRA_IMGTOOL_ARGS
string "Extra arguments to pass to imgtool when signing"
default ""
Expand Down