scripts: ci: check_compliance: Disallow board hooks in defconfigs

Adds board hooks to the disallowed defconfig symbol list as
these should be selected, not put in a defconfig

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2025-04-02 09:53:08 +01:00 committed by Benjamin Cabé
commit 2f55dc8add

View file

@ -704,6 +704,8 @@ class KconfigCheck(ComplianceTest):
disallowed_symbols = { disallowed_symbols = {
"PINCTRL": "Drivers requiring PINCTRL must SELECT it instead.", "PINCTRL": "Drivers requiring PINCTRL must SELECT it instead.",
"BOARD_EARLY_INIT_HOOK": "Boards requiring hooks must SELECT them instead.",
"BOARD_LATE_INIT_HOOK": "Boards requiring hooks must SELECT them instead.",
} }
disallowed_regex = "(" + "|".join(disallowed_symbols.keys()) + ")$" disallowed_regex = "(" + "|".join(disallowed_symbols.keys()) + ")$"