]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - scripts/Makefile.clean
dm: exynos: dts: Adjust device tree files for U-Boot
[karo-tx-uboot.git] / scripts / Makefile.clean
index 5cd0f51770a8d69112ef9337da2b130a62567012..88f14e2d8fb4419927d057f325349297fba275f9 100644 (file)
@@ -39,13 +39,14 @@ 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
 
-__clean-files  := $(extra-y) $(always)                  \
-                  $(targets) $(clean-files)             \
+__clean-files  := $(extra-y) $(extra-m) $(extra-)       \
+                  $(always) $(targets) $(clean-files)   \
                   $(host-progs)                         \
                   $(hostprogs-y) $(hostprogs-m) $(hostprogs-)