Skip to content
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

[hwm2] ci: update check_compliance to not create duplicate lines in Kconfig #68811

Conversation

tejlmand
Copy link
Collaborator

@tejlmand tejlmand commented Feb 9, 2024

check_compliance generates Kconfig files for sourcing board and soc Kconfig tree in order to run compliance.

Each board and soc generated a source entry, however several socs are using same soc dir and thus multiple identical source lines where created.

Use a set() to ensure unique lines before generating Kconfig files. This ensures that each Kconfig file is only sourced once. This improves both compliance as fewer lines needs to be written, as well as improves Kconfiglib as fewer Kconfig files must be sourced, as redundant sourcing is not avoided.

@tejlmand tejlmand added the Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. label Feb 9, 2024
check_compliance generates Kconfig files for sourcing board and soc
Kconfig tree in order to run compliance.

Each board and soc generated a source entry, however several socs are
using same soc dir and thus multiple identical source lines where
created.

Use a set() to ensure unique folders before generating Kconfig files.
This ensures that each Kconfig file is only sourced once.
This improves both compliance as fewer lines needs to be written, as
well as improves Kconfiglib as fewer Kconfig files must be sourced, as
redundant sourcing is not avoided.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
@tejlmand tejlmand force-pushed the hwmv2_check_compliance_kconfig branch from ea8da19 to 4fac2ad Compare February 9, 2024 14:24
@henrikbrixandersen henrikbrixandersen changed the title ci: update check_compliance to not create duplicate lines in Kconfig [hwm2] ci: update check_compliance to not create duplicate lines in Kconfig Feb 9, 2024
@nordicjm nordicjm merged commit f56eab2 into zephyrproject-rtos:collab-hwm Feb 12, 2024
11 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants