File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ set(VERSION_FILE ${ZEPHYR_CURRENT_MODULE_DIR}/VERSION)
55set (VERSION_TYPE BUNDLE )
66include (${ZEPHYR_BASE} /cmake/modules/version .cmake)
77string (REGEX REPLACE "[^0-9]+" "" BUNDLE_VERSION_EXTRA_NUM "${BUNDLE_VERSION_EXTRA} " )
8+ math (EXPR BUNDLE_VERSION_INT "(${BUNDLE_VERSION_MAJOR} << 24) + (${BUNDLE_VERSION_MINOR} << 16) +\
9+ (${BUNDLE_PATCHLEVEL} << 8) + (${BUNDLE_VERSION_EXTRA_NUM} )" )
10+ math (EXPR BUNDLE_VERSION_NUMBER "${BUNDLE_VERSION_INT} " OUTPUT_FORMAT HEXADECIMAL)
811set (BUNDLE_VERSION_STRING "${BUNDLE_VERSION_MAJOR} .${BUNDLE_VERSION_MINOR} .${BUNDLE_PATCHLEVEL} .${BUNDLE_VERSION_EXTRA_NUM} " )
912if ("${BUNDLE_VERSION_STRING} " STREQUAL "..." )
1013 message (FATAL_ERROR "Unable to extract bundle version" )
You can’t perform that action at this time.
0 commit comments