History

kbuild: drop $(objtree)/ prefix support for clean-files

I think this hack is a bad idea. arch/powerpc/boot/Makefile is the only and last user. Let's stop doing this.

Masahiro Yamada committed 4 years ago

Commit 8d613a11 parent 75ef3122 files · +3 −9Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/Makefile.clean+1−7
@@ -36,13 +36,7 @@ __clean-files := \ · 35 unmodified lines
3636
3737 __clean-files := $(filter-out $(no-clean-files), $(__clean-files))
3838
39−# clean-files is given relative to the current directory, unless it
40−# starts with $(objtree)/ (which means "./", so do not add "./" unless
41−# you want to delete a file from the toplevel object directory).
42−
43−__clean-files := $(wildcard \
44− $(addprefix $(obj)/, $(filter-out $(objtree)/%, $(__clean-files))) \
45− $(filter $(objtree)/%, $(__clean-files)))
39+__clean-files := $(wildcard $(addprefix $(obj)/, $(__clean-files)))
4640
4741 # ==========================================================================
4842