mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
build_image: use pbzip2 on glibc debug info
Gives a minor speed up. BUG=None TEST=`./build_image --board=x86-alex dev` still works Change-Id: I2c5251b788c557e9c76d05140aaed255003bb1e3 Reviewed-on: https://gerrit.chromium.org/gerrit/26258 Reviewed-by: David James <davidjames@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
e94c0766a3
commit
c51e1f941d
@ -28,7 +28,8 @@ install_dev_packages() {
|
|||||||
# Copy over the libc debug info so that gdb
|
# Copy over the libc debug info so that gdb
|
||||||
# works with threads and also for a better debugging experience.
|
# works with threads and also for a better debugging experience.
|
||||||
sudo mkdir -p "${ROOT_FS_DIR}/usr/local/usr/lib/debug"
|
sudo mkdir -p "${ROOT_FS_DIR}/usr/local/usr/lib/debug"
|
||||||
sudo tar jxpf "${LIBC_PATH}" -C "${ROOT_FS_DIR}/usr/local/usr/lib/debug" \
|
pbzip2 -dc --ignore-trailing-garbage=1 "${LIBC_PATH}" | \
|
||||||
|
sudo tar xpf - -C "${ROOT_FS_DIR}/usr/local/usr/lib/debug" \
|
||||||
./usr/lib/debug/usr/${CHOST} --strip-components=6
|
./usr/lib/debug/usr/${CHOST} --strip-components=6
|
||||||
# Since gdb only looks in /usr/lib/debug, symlink the /usr/local
|
# Since gdb only looks in /usr/lib/debug, symlink the /usr/local
|
||||||
# path so that it is found automatically.
|
# path so that it is found automatically.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user