Use xz prebuilt
Instead of whichever xz happens to be on the PATH. Bug: 36130900 Test: prebuilts/build-tools/build-prebuilts.sh Change-Id: Ic9b66062ca7947f0eca9d839c0864da492d4ef71
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
# Inputs:
|
||||
# Environment:
|
||||
# CROSS_COMPILE: prefix added to readelf, objcopy tools
|
||||
# XZ: path to the xz binary
|
||||
# Arguments:
|
||||
# -i ${file}: input file (required)
|
||||
# -o ${file}: output file (required)
|
||||
@@ -58,7 +59,7 @@ do_strip_keep_mini_debug_info() {
|
||||
"${CROSS_COMPILE}objcopy" --rename-section .debug_frame=saved_debug_frame "${outfile}.debug" "${outfile}.mini_debuginfo"
|
||||
"${CROSS_COMPILE}objcopy" -S --remove-section .gdb_index --remove-section .comment --keep-symbols="${outfile}.keep_symbols" "${outfile}.mini_debuginfo"
|
||||
"${CROSS_COMPILE}objcopy" --rename-section saved_debug_frame=.debug_frame "${outfile}.mini_debuginfo"
|
||||
xz "${outfile}.mini_debuginfo"
|
||||
"${XZ}" "${outfile}.mini_debuginfo"
|
||||
"${CROSS_COMPILE}objcopy" --add-section .gnu_debugdata="${outfile}.mini_debuginfo.xz" "${outfile}.tmp"
|
||||
else
|
||||
cp -f "${infile}" "${outfile}.tmp"
|
||||
|
Reference in New Issue
Block a user