mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +00:00
kbuild: remove EXTRA_*FLAGS support
Commit f77bf01425 ("kbuild: introduce ccflags-y, asflags-y and
ldflags-y") deprecated these in 2007. The migration should have been
completed by now.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
This commit is contained in:
@@ -3689,20 +3689,6 @@ sub process {
|
||||
}
|
||||
}
|
||||
|
||||
if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) &&
|
||||
($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
|
||||
my $flag = $1;
|
||||
my $replacement = {
|
||||
'EXTRA_AFLAGS' => 'asflags-y',
|
||||
'EXTRA_CFLAGS' => 'ccflags-y',
|
||||
'EXTRA_CPPFLAGS' => 'cppflags-y',
|
||||
'EXTRA_LDFLAGS' => 'ldflags-y',
|
||||
};
|
||||
|
||||
WARN("DEPRECATED_VARIABLE",
|
||||
"Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag});
|
||||
}
|
||||
|
||||
# check for DT compatible documentation
|
||||
if (defined $root &&
|
||||
(($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
|
||||
|
||||
Reference in New Issue
Block a user