]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - scripts/Makefile.clean
dm: Adjust lists_bind_fdt() to return the bound device
[karo-tx-uboot.git] / scripts / Makefile.clean
index 5cd0f51770a8d69112ef9337da2b130a62567012..d6dcd47f6f9742ff36c0d6fe1ebe43eabe1c2b5b 100644 (file)
@@ -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