Merge "Remove Soong intermdiates after moving image mutator" am: ff81b9d1d0 am: a69bb55b5b

Change-Id: Iedb49b8965ed3fb473f739112f5d58d5451c0824
diff --git a/CleanSpec.mk b/CleanSpec.mk
index cf9127d..673856c 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -709,6 +709,10 @@
 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/CtsShimPrebuilt)
 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/apex/com.android.apex.cts.shim.apex)
 
+# Remove vendor and recovery variants, the directory name has changed.
+$(call add-clean-step, find $(SOONG_OUT_DIR)/.intermediates -type d -name "android_*_recovery*" -print0 | xargs -0 rm -rf)
+$(call add-clean-step, find $(SOONG_OUT_DIR)/.intermediates -type d -name "android_*_vendor*" -print0 | xargs -0 rm -rf)
+
 # ************************************************
 # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
 # ************************************************