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:
parent
7dcec3384e
commit
2f55dc8add
1 changed files with 2 additions and 0 deletions
|
@ -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()) + ")$"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue