Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)

+3 -9
+2 -2
arch/powerpc/boot/Makefile
··· 453 453 clean-kernel-base := vmlinux.strip vmlinux.bin 454 454 clean-kernel := $(addsuffix .gz,$(clean-kernel-base)) 455 455 clean-kernel += $(addsuffix .xz,$(clean-kernel-base)) 456 - # If not absolute clean-files are relative to $(obj). 457 - clean-files += $(addprefix $(objtree)/, $(clean-kernel)) 456 + # clean-files are relative to $(obj). 457 + clean-files += $(addprefix ../../../, $(clean-kernel)) 458 458 459 459 WRAPPER_OBJDIR := /usr/lib/kernel-wrapper 460 460 WRAPPER_DTSDIR := /usr/lib/kernel-wrapper/dts
+1 -7
scripts/Makefile.clean
··· 36 36 37 37 __clean-files := $(filter-out $(no-clean-files), $(__clean-files)) 38 38 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))) 46 40 47 41 # ========================================================================== 48 42