Repository navigation
chore(Kconfig): add version info to Kconfig file to check mismatch - #6789
Merged
Merged
Conversation
XuNeo
force-pushed
the
t54
branch
2 times, most recently
from
September 3, 2024 15:04
8f3a915 to
b76ef5b
Compare
FASTSHIFT
reviewed
Sep 4, 2024
kisvegabor
reviewed
Sep 4, 2024
kisvegabor
left a comment
Member
There was a problem hiding this comment.
Please add these to update_version.py as well.
Collaborator
Author
@becseya Could you help on this with a separate PR? Current update_version.py is based on line, while Kconfig needs to match several lines. ++class KconfigReplacer(MacroReplacer):
++ """Replace version info in Kconfig file"""
++
++ def getPattern(self, key: str):
++ # Match the version fields in Kconfig file
++ return rf'(^\s*config\s+{key}\n\s*int\s*\n.*\n\s*default\s+)(\d+)'
++
++ def getReplacement(self, val: str):
++ # Replace the version value
++ return r'\g<1>' + val
++ |
Contributor
|
@XuNeo @kisvegabor Sure, I can help with that in a separate PR. |
XuNeo
commented
Sep 6, 2024
FASTSHIFT
previously approved these changes
Sep 6, 2024
kisvegabor
reviewed
Sep 9, 2024
For NuttX, lvgl/Kconfig file is copied out, add version info in Kconfig file to detect if the Kconfig is out of sync with source code. Signed-off-by: Neo Xu <[email protected]>
Collaborator
Author
|
I have updated suggests from @kisvegabor , now the update_version.py can cover this case too. |
liamHowatt
approved these changes
Sep 20, 2024
kisvegabor
approved these changes
Sep 20, 2024
Member
I've discussed it with @nicusorcitu that we can release v9.2.1 at the beginning of October. |
rodb70
pushed a commit
to rodb70/lvgl
that referenced
this pull request
Nov 8, 2024
…vgl#6789) Signed-off-by: Neo Xu <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For NuttX, lvgl/Kconfig file is copied out, add version info in Kconfig file to detect if the Kconfig is out of sync with source code.
Fix #6576
Notes
lv_conf_template.hrun lv_conf_internal_gen.py and update Kconfig.scripts/code-format.py(astyle v3.4.12needs to installed by runningcd scripts; ./install_astyle.sh) and follow the Code Conventions.