Skip to content

Commit 8354fc5

Browse files
JordanYatesfabiobaltieri
authored andcommitted
modules: tfm: default version numbers from VERSION
Populate the TFM application version numbers from the application `VERSION` file if it exists. Signed-off-by: Jordan Yates <[email protected]>
1 parent 8a30c23 commit 8354fc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/trusted-firmware-m/Kconfig.tfm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,15 @@ config TFM_BL2_NOT_SUPPORTED
188188

189189
config TFM_IMAGE_VERSION_S
190190
string "Version of the Secure Image"
191+
default "$(APP_VERSION_TWEAK_STRING)" if "$(VERSION_MAJOR)" != "" && TFM_MCUBOOT_IMAGE_NUMBER = 1
191192
default "0.0.0+0"
192193
help
193194
Version of the secure image. This version is also used for merged
194195
secure + non-secure builds (TFM_MCUBOOT_IMAGE_NUMBER == 1).
195196

196197
config TFM_IMAGE_VERSION_NS
197198
string "Version of the Non-Secure Image"
199+
default "$(APP_VERSION_TWEAK_STRING)" if "$(VERSION_MAJOR)" != "" && TFM_MCUBOOT_IMAGE_NUMBER = 2
198200
default "0.0.0+0"
199201
help
200202
Version of the non-secure image.

0 commit comments

Comments
 (0)