Skip to content

chore(Kconfig): add version info to Kconfig file to check mismatch - #6789

Merged
kisvegabor merged 1 commit into
lvgl:masterfrom
XuNeo:t54
Sep 20, 2024
Merged

kisvegabor merged 1 commit into
lvgl:masterfrom
XuNeo:t54

Conversation

@XuNeo

@XuNeo XuNeo commented Sep 3, 2024

Copy link
Copy Markdown
Collaborator

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

@XuNeo
XuNeo force-pushed the t54 branch 2 times, most recently from 8f3a915 to b76ef5b Compare September 3, 2024 15:04
Comment thread src/lv_conf_kconfig.h Resolved

@kisvegabor kisvegabor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add these to update_version.py as well.

Comment thread Kconfig Resolved
@XuNeo

XuNeo commented Sep 4, 2024

Copy link
Copy Markdown
Collaborator Author

Please add these to update_version.py as well.

@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
++

@becseya

becseya commented Sep 4, 2024

Copy link
Copy Markdown
Contributor

@XuNeo @kisvegabor Sure, I can help with that in a separate PR.

Comment thread src/lv_conf_kconfig.h Resolved
FASTSHIFT
FASTSHIFT previously approved these changes Sep 6, 2024

@kisvegabor kisvegabor left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My review wasn't sent, sorry...

Comment thread Kconfig Resolved
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]>
@XuNeo

XuNeo commented Sep 20, 2024

Copy link
Copy Markdown
Collaborator Author

I have updated suggests from @kisvegabor , now the update_version.py can cover this case too.
I'll pick to release/v9.2 once it's reviewed and merged.

@XuNeo
XuNeo requested a review from kisvegabor September 20, 2024 03:52
@kisvegabor
kisvegabor merged commit 8dea322 into lvgl:master Sep 20, 2024
@kisvegabor

Copy link
Copy Markdown
Member

I'll pick to release/v9.2 once it's reviewed and merged.

I've discussed it with @nicusorcitu that we can release v9.2.1 at the beginning of October.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add method to detect not synced Kconfig, specially for NuttX

5 participants