]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - scripts/Makefile.clean
kbuild: use scripts/Makefile.clean
[karo-tx-uboot.git] / scripts / Makefile.clean
index 686cb0d31c7c956943693dd0d517d878cf99b7a0..5cd0f51770a8d69112ef9337da2b130a62567012 100644 (file)
@@ -37,6 +37,10 @@ subdir-ymn      := $(sort $(subdir-ym) $(subdir-n) $(subdir-))
 
 subdir-ymn     := $(addprefix $(obj)/,$(subdir-ymn))
 
 
 subdir-ymn     := $(addprefix $(obj)/,$(subdir-ymn))
 
+# Temporal work-around for U-Boot
+
+subdir-ymn     := $(foreach f, $(subdir-ymn), $(if $(wildcard $f/Makefile),$f))
+
 # build a list of files to remove, usually relative to the current
 # directory
 
 # build a list of files to remove, usually relative to the current
 # directory