File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,14 @@ function(zephyr_mcuboot_tasks)
133
133
set (imgtool_extra -k "${keyfile} " ${imgtool_extra} )
134
134
endif ()
135
135
136
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_VID)
137
+ set (imgtool_extra ${imgtool_extra} --vid "${CONFIG_MCUBOOT_IMGTOOL_UUID_VID_NAME} " )
138
+ endif ()
139
+
140
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_CID)
141
+ set (imgtool_extra ${imgtool_extra} --cid "${CONFIG_MCUBOOT_IMGTOOL_UUID_CID_NAME} " )
142
+ endif ()
143
+
136
144
set (imgtool_args ${imgtool_extra} )
137
145
138
146
# Extensionless prefix of any output file.
Original file line number Diff line number Diff line change @@ -95,6 +95,14 @@ function(zephyr_mcuboot_tasks)
95
95
set (imgtool_extra -k "${keyfile} " ${imgtool_extra} )
96
96
endif ()
97
97
98
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_VID)
99
+ set (imgtool_extra ${imgtool_extra} --vid "${CONFIG_MCUBOOT_IMGTOOL_UUID_VID_NAME} " )
100
+ endif ()
101
+
102
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_CID)
103
+ set (imgtool_extra ${imgtool_extra} --cid "${CONFIG_MCUBOOT_IMGTOOL_UUID_CID_NAME} " )
104
+ endif ()
105
+
98
106
set (imgtool_args ${imgtool_extra} )
99
107
100
108
# Extensionless prefix of any output file.
Original file line number Diff line number Diff line change @@ -135,6 +135,14 @@ function(zephyr_mcuboot_tasks)
135
135
set (imgtool_extra -k "${keyfile} " ${imgtool_extra} )
136
136
endif ()
137
137
138
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_VID)
139
+ set (imgtool_extra ${imgtool_extra} --vid "${CONFIG_MCUBOOT_IMGTOOL_UUID_VID_NAME} " )
140
+ endif ()
141
+
142
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_CID)
143
+ set (imgtool_extra ${imgtool_extra} --cid "${CONFIG_MCUBOOT_IMGTOOL_UUID_CID_NAME} " )
144
+ endif ()
145
+
138
146
set (imgtool_args ${imgtool_extra} )
139
147
140
148
# Extensionless prefix of any output file.
Original file line number Diff line number Diff line change @@ -124,6 +124,20 @@ function(mcuboot_sign_merged_nrf54h20 merged_hex main_image)
124
124
set (imgtool_args)
125
125
endif ()
126
126
127
+ # Fetch VID and CID values from the main image Kconfig.
128
+ set (CONFIG_MCUBOOT_IMGTOOL_UUID_VID)
129
+ set (CONFIG_MCUBOOT_IMGTOOL_UUID_CID)
130
+ sysbuild_get(CONFIG_MCUBOOT_IMGTOOL_UUID_VID IMAGE ${main_image} VAR CONFIG_MCUBOOT_IMGTOOL_UUID_VID KCONFIG)
131
+ sysbuild_get(CONFIG_MCUBOOT_IMGTOOL_UUID_CID IMAGE ${main_image} VAR CONFIG_MCUBOOT_IMGTOOL_UUID_CID KCONFIG)
132
+
133
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_VID)
134
+ set (imgtool_extra ${imgtool_extra} --vid "${CONFIG_MCUBOOT_IMGTOOL_UUID_VID_NAME} " )
135
+ endif ()
136
+
137
+ if (CONFIG_MCUBOOT_IMGTOOL_UUID_CID)
138
+ set (imgtool_extra ${imgtool_extra} --cid "${CONFIG_MCUBOOT_IMGTOOL_UUID_CID_NAME} " )
139
+ endif ()
140
+
127
141
# Fetch version and flags from the main image Kconfig.
128
142
set (CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION)
129
143
set (CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE)
You can’t perform that action at this time.
0 commit comments