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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 341f336..e5f5a8c 100644 --- a/Makefile +++ b/Makefile @@ -1173,7 +1173,7 @@ MRPROPER_FILES += .config .config.old \ clean: rm-dirs := $(CLEAN_DIRS) clean: rm-files := $(CLEAN_FILES) -clean-dirs := $(foreach f,$(u-boot-alldirs),$(if $(wildcard $f/Makefile),$f)) +clean-dirs := $(foreach f,$(u-boot-alldirs),$(if $(wildcard $(srctree)/$f/Makefile),$f)) clean-dirs := $(addprefix _clean_, $(clean-dirs) doc/DocBook) -- cgit v1.1