mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
checkpatch.pl: Update CONFIG logic in U-Boot section
Now that all CONFIG symbols are in Kconfig, checkpatch.pl should check for and error on any case of define/undef CONFIG_*. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -2630,10 +2630,10 @@ sub u_boot_line {
|
||||
"strl$1 is preferred over strn$1 because it always produces a nul-terminated string\n" . $herecurr);
|
||||
}
|
||||
|
||||
# use defconfig to manage CONFIG_CMD options
|
||||
if ($line =~ /\+\s*#\s*(define|undef)\s+(CONFIG_CMD\w*)\b/) {
|
||||
ERROR("DEFINE_CONFIG_CMD",
|
||||
"All commands are managed by Kconfig\n" . $herecurr);
|
||||
# use Kconfig for all CONFIG symbols
|
||||
if ($line =~ /\+\s*#\s*(define|undef)\s+(CONFIG_\w*)\b/) {
|
||||
ERROR("DEFINE_CONFIG_SYM",
|
||||
"All CONFIG symbols are managed by Kconfig\n" . $herecurr);
|
||||
}
|
||||
|
||||
# Don't put common.h and dm.h in header files
|
||||
|
||||
Reference in New Issue
Block a user