]> git.sur5r.net Git - u-boot/blobdiff - scripts/Makefile.clean
sunxi: Add axp152 pmic support
[u-boot] / scripts / Makefile.clean
index 686cb0d31c7c956943693dd0d517d878cf99b7a0..d6dcd47f6f9742ff36c0d6fe1ebe43eabe1c2b5b 100644 (file)
@@ -37,6 +37,11 @@ subdir-ymn      := $(sort $(subdir-ym) $(subdir-n) $(subdir-))
 
 subdir-ymn     := $(addprefix $(obj)/,$(subdir-ymn))
 
+# Temporal work-around for U-Boot
+
+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