Remove strip.sh intermediates
The intermediate files generated by strip.sh --keep-symbols can be very large, and are not useful after the build. Remove them once the final output file has been generated. Saves ~6GB on an aosp_sailfish-userdebug build. Test: m checkbuild Change-Id: I0413f16ac5f423bc1b010cc9b8538f19bdea561e
This commit is contained in:
@@ -98,6 +98,7 @@ do_strip_keep_mini_debug_info() {
|
||||
else
|
||||
"${CROSS_COMPILE}objcopy" --add-section .gnu_debugdata="${outfile}.mini_debuginfo.xz" "${outfile}.tmp"
|
||||
fi
|
||||
rm -f "${outfile}.dynsyms" "${outfile}.funcsyms" "${outfile}.keep_symbols" "${outfile}.debug" "${outfile}.mini_debuginfo" "${outfile}.mini_debuginfo.xz"
|
||||
else
|
||||
cp -f "${infile}" "${outfile}.tmp"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user