mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-04 12:04:17 +00:00
checkpatch.pl: Report an error for CONFIG_xPL_BUILD in device trees
The defines for the different build phases shouldn't be used in device trees, currently they aren't even defined for device tree pre processing, resulting in build errors. Link: https://lists.denx.de/pipermail/u-boot/2025-March/582787.html Signed-off-by: Hendrik Donner <hd@os-cillation.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
15ba2b7356
commit
69fb899133
1 changed files with 6 additions and 0 deletions
|
@ -2692,6 +2692,12 @@ sub u_boot_line {
|
|||
ERROR("PRE_SCHEMA",
|
||||
"Driver model schema uses 'bootph-...' tags now\n" . $herecurr);
|
||||
}
|
||||
|
||||
# Do not allow CONFIG_xPL_BUILD in device trees
|
||||
if ($realfile =~ /\.dtsi?$/ && $line =~ /^\+.*CONFIG_(X|S|T|V)PL_BUILD.*/) {
|
||||
ERROR("CONFIG_xPL_BUILD",
|
||||
"Do not use CONFIG_xPL_BUILD in device trees\n" . $herecurr);
|
||||
}
|
||||
}
|
||||
|
||||
sub exclude_global_initialisers {
|
||||
|
|
Loading…
Add table
Reference in a new issue