From 3c6d5480c5b74e1ae26cdcf7bf4ce24c26f00385 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 18 Oct 2018 11:35:10 -0700 Subject: [PATCH] Remove strip.sh intermediates to save space Add a cleanspec to removed unused strip.sh intermediates. Saved 32GB on my AOSP checkout that had been used to build multiple devices. Test: m nothing Change-Id: Ia319a2feacdd1a1ac8b88a6783766c370438ce12 --- CleanSpec.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CleanSpec.mk b/CleanSpec.mk index a96dd83aeb..a9093d2243 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -509,6 +509,9 @@ $(call add-clean-step, rm -rf $(addsuffix /lib,\ $(HOST_CROSS_OUT_INTERMEDIATES) $(2ND_HOST_CROSS_OUT_INTERMEDIATES) \ $(TARGET_OUT_INTERMEDIATES) $(2ND_TARGET_OUT_INTERMEDIATES))) +# Remove strip.sh intermediates to save space +$(call add-clean-step, find $(OUT_DIR) \( -name "*.so.debug" -o -name "*.so.dynsyms" -o -name "*.so.funcsyms" -o -name "*.so.keep_symbols" -o -name "*.so.mini_debuginfo.xz" \) -print0 | xargs -0 rm -f) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************