summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-03-28 14:55:02 +0900
committerTom Rini <trini@ti.com>2014-03-28 15:06:32 -0400
commit6bd04bb48715dc8e8f6d1a3389f886698bba0dc0 (patch)
treeb29a23e12167974244d4a6823cb56698dbd162bb /scripts
parent5a449d75bca1e8798571cb04093553593e5ed73e (diff)
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=<some_dir> option. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Reported-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.clean3
1 files changed, 2 insertions, 1 deletions
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