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>
This commit is contained in:
committed by
Tom Rini
parent
5a449d75bc
commit
6bd04bb487
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user