From 6bd04bb48715dc8e8f6d1a3389f886698bba0dc0 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Fri, 28 Mar 2014 14:55:02 +0900 Subject: kbuild: fix bugs in cleaning targets "make clean", "make clobber", "make mrproper" and "make distclean" missed to clean-up some files when they were run with O= option. Signed-off-by: Masahiro Yamada Reported-by: Wolfgang Denk --- scripts/Makefile.clean | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/Makefile.clean') diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index 5cd0f51770..d6dcd47f6f 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -39,7 +39,8 @@ subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) # Temporal work-around for U-Boot -subdir-ymn := $(foreach f, $(subdir-ymn), $(if $(wildcard $f/Makefile),$f)) +subdir-ymn := $(foreach f, $(subdir-ymn), \ + $(if $(wildcard $(srctree)/$f/Makefile),$f)) # build a list of files to remove, usually relative to the current # directory -- cgit v1.2.1