Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

check_compliance.py: Check for duplicated dependencies on Kconfig syms #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ulfalizer
Copy link
Collaborator

Check for e.g. 'if FOO' within 'if FOO', or 'depends on FOO' within 'if
FOO'. Such duplicated dependencies make it easier to mess up changes to
Kconfig files (because it's not obvious that the same dependency is
added twice), and make the autogenerated documentation uglier.

Some of them might have been added due to Kconfig misunderstandings too.

@ulfalizer ulfalizer requested a review from nashif as a code owner February 7, 2020 02:13
@ulfalizer ulfalizer added the DNM label Feb 7, 2020
@ulfalizer
Copy link
Collaborator Author

Marking DNM until I've fixed the stuff it flags in Zephyr.

@zephyrbot
Copy link
Collaborator

zephyrbot commented Feb 7, 2020

All checks are passing now.

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

ulfalizer added a commit to ulfalizer/zephyr that referenced this pull request Feb 7, 2020
Kconfig.tls-generic is already 'source'd within an 'if MBEDTLS' in
modules/Kconfig.mbedtls (the 'if' covers most of the file).

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
carlescufi pushed a commit to zephyrproject-rtos/zephyr that referenced this pull request Feb 7, 2020
Kconfig.tls-generic is already 'source'd within an 'if MBEDTLS' in
modules/Kconfig.mbedtls (the 'if' covers most of the file).

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
ulfalizer added a commit to ulfalizer/zephyr that referenced this pull request Feb 7, 2020
CUSTOM_SECTION_ALIGN is already defined within an 'if ARM_MPU', so it
does not need a 'depends on ARM_MPU'.

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
ulfalizer added a commit to ulfalizer/zephyr that referenced this pull request Feb 7, 2020
Check for e.g. 'if FOO' within 'if FOO', or 'depends on FOO' within 'if
FOO'. Such duplicated dependencies make it easier to mess up changes to
Kconfig files (because it's not obvious that the same dependency is
added twice), and make the autogenerated documentation uglier.

Some of them might have been added due to Kconfig misunderstandings too.

Signed-off-by: Ulf Magnusson <[email protected]>
MaureenHelm pushed a commit to zephyrproject-rtos/zephyr that referenced this pull request Feb 7, 2020
MaureenHelm pushed a commit to zephyrproject-rtos/zephyr that referenced this pull request Feb 7, 2020
CUSTOM_SECTION_ALIGN is already defined within an 'if ARM_MPU', so it
does not need a 'depends on ARM_MPU'.

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
ulfalizer added a commit to ulfalizer/zephyr that referenced this pull request Feb 8, 2020
This symbol is already defined within an 'if SPI_DW'.

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
ulfalizer added a commit to ulfalizer/zephyr that referenced this pull request Feb 8, 2020
Kconfig.rv32m1 is already 'source'd within an 'if ENTROPY_GENERATOR', so
ENTROPY_RV32M1_TRNG does not need a 'depends on ENTROPY_GENERATOR'.

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
jhedberg pushed a commit to zephyrproject-rtos/zephyr that referenced this pull request Feb 8, 2020
This symbol is already defined within an 'if SPI_DW'.

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
galak pushed a commit to zephyrproject-rtos/zephyr that referenced this pull request Feb 12, 2020
Kconfig.rv32m1 is already 'source'd within an 'if ENTROPY_GENERATOR', so
ENTROPY_RV32M1_TRNG does not need a 'depends on ENTROPY_GENERATOR'.

Flagged by zephyrproject-rtos/ci-tools#128.

Signed-off-by: Ulf Magnusson <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants