Skip to content

Commit

Permalink
[nrfconnect] Use version string with tweak
Browse files Browse the repository at this point in the history
This commit modifies the string format of versioning to include tweak.

Signed-off-by: Łukasz Duda <[email protected]>
  • Loading branch information
LuDuda committed May 6, 2024
1 parent 117332a commit 490d1bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/zephyr/ota-image.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function(chip_ota_image TARGET_NAME)
"--version"
${APPVERSION}
"--version-str"
${APP_VERSION_STRING}
${APP_VERSION_TWEAK_STRING}
"--digest-algorithm"
"sha256"
)
Expand Down
6 changes: 1 addition & 5 deletions src/platform/nrfconnect/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,16 @@
#define CHIP_DEVICE_CONFIG_DEFAULT_DEVICE_HARDWARE_VERSION CONFIG_CHIP_DEVICE_HARDWARE_VERSION
#define CHIP_DEVICE_CONFIG_DEFAULT_DEVICE_HARDWARE_VERSION_STRING CONFIG_CHIP_DEVICE_HARDWARE_VERSION_STRING

#ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION
#ifdef CONFIG_CHIP_DEVICE_SOFTWARE_VERSION
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION CONFIG_CHIP_DEVICE_SOFTWARE_VERSION
#else
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION APPVERSION
#endif
#endif

#ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING
#ifdef CONFIG_CHIP_DEVICE_SOFTWARE_VERSION_STRING
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING CONFIG_CHIP_DEVICE_SOFTWARE_VERSION_STRING
#else
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING APP_VERSION_STRING
#endif
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING APP_VERSION_TWEAK_STRING
#endif

#define CHIP_DEVICE_CONFIG_TEST_MANUFACTURING_DATE CONFIG_CHIP_DEVICE_MANUFACTURING_DATE
Expand Down

0 comments on commit 490d1bd

Please sign in to comment.