I think this hack is a bad idea. arch/powerpc/boot/Makefile is the only and last user. Let's stop doing this.
Unified · Split
| @@ -453,8 +453,8 @@ clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ · 452 unmodified lines | ||
| 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 |
| @@ -36,13 +36,7 @@ __clean-files := \ · 35 unmodified lines | ||
| 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 | |