-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
cmake: Set kernel version to NCS version #11956
Conversation
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Test specificationCI/Jenkins/NRF
CI/Jenkins/integration
Detailed information of selected test modules Note: This message is automatically posted and updated by the CI |
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publishing GitHub Action. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please ensure we don't introduce zephyrproject-rtos/zephyr#39503 in our downstream solution
cmake/kernel_version.cmake
Outdated
# Set version of nRF connect SDK to BUILD_VERSION for boot banner usage | ||
find_package(Git QUIET) | ||
if(GIT_FOUND) | ||
execute_process( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is generally unsafe as an update / commit to a C file will not cause a CMake rerun and hence the git describe commit may be out-of-sync with the actual commit used for the build wrt. incremental builds.
See more details here for a similar (now fixed) flaw upstream: zephyrproject-rtos/zephyr#39503
and a proper fix here: zephyrproject-rtos/zephyr#42527
Notice how the upstream solution uses an add_custom_command()
to drive the CMake script which does the git describe
call, whereby the git command can have a proper dependency on the git index file.
aa8b086
to
a8e8876
Compare
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
a8e8876
to
0505ce4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs look good.
0505ce4
to
2ef0eb4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
temp blocking.
2ef0eb4
to
2e24244
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
2e24244
to
93d98d3
Compare
93d98d3
to
fe4eea0
Compare
fe4eea0
to
2818aac
Compare
This commit changes the generation of ncs_version.h from internal configure_file() call to use the Zephyr provided mechanism. This is first step in NCS adopting the uniform VERSION approach provided by Zephyr. Furthermore it injects ncs_version.h into Zephyr's version.h allowing NCS to substitute the build version in the boot banner, unless build version has been defined by the user as `-DBUILD_VERSION=<version>`. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
Overrides the default boot banner with NCS Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Adds a note that the default boot banner now shows as nRF Connect SDK Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2818aac
to
39ec4b4
Compare
and