build_library: Use lbzip2 to decompress gcc binpkg

Speeds things up a bit.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2024-03-14 17:50:21 +00:00
parent 47b77cea07
commit 0eb0bb38e8
2 changed files with 4 additions and 2 deletions

View File

@ -529,7 +529,8 @@ insert_extra_slsa() {
if [ -f "${binpkg}" ]; then
info "Found ${atom} at ${binpkg}"
qtbz2 -O -t "${binpkg}" | \
sudo tar -C "${rootfs}" -xj --wildcards './usr/share/SLSA'
lbzcat -d -c - | \
sudo tar -C "${rootfs}" -x --wildcards './usr/share/SLSA'
continue
fi
warn "Missing SLSA information for ${atom}"

View File

@ -44,7 +44,8 @@ extract_prod_gcc() {
# /usr/lib/gcc/x86_64-cros-linux-gnu/$version/*
# Instead we extract them to plain old /usr/lib
qtbz2 -O -t "${pkg}" | \
sudo tar -C "${root_fs_dir}" -xj \
lbzcat -d -c - | \
sudo tar -C "${root_fs_dir}" -x \
--transform 's#/usr/lib/.*/#/usr/lib64/#' \
--wildcards './usr/lib/gcc/*.so*' \
--wildcards './usr/share/SLSA'