summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-03-24 20:10:55 -0600
committerTom Rini <[email protected]>2025-03-24 20:10:55 -0600
commit647cb87b5ab2ad6469cf42f3272f00688bd26039 (patch)
tree80e947190747a13ece8909ee95dbfed016f49170 /scripts/checkpatch.pl
parentd574229880378081691dc06c430424015be0740c (diff)
parent3d8be1f5ec30180748259a251efe4f63c8b4b329 (diff)
Merge tag 'v2025.04-rc5' into next
Prepare v2025.04-rc5
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index f9f8891c0c4..414019c5b89 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -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 {