Skip to content

Commit

Permalink
Generate .xz tarballs instead of .bz2 tarballs
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
tpetazzoni committed Jul 17, 2024
1 parent fb7ecd5 commit 620f76a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci/gitlab-ci.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
paths:
- build/*.config
- build/*-build.log
- build/*.tar.bz2
- build/*.tar.xz
- build/*.sha256
- build/README.txt
- build/summary.csv
Expand Down Expand Up @@ -55,7 +55,7 @@
expire_in: 2 weeks
paths:
- test/*.config
- test/*.tar.bz2
- test/*.tar.xz
- test/*.sha256
- test/*-test-result.txt
- test/*-test-build.log
Expand Down
8 changes: 4 additions & 4 deletions build-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function make_br_fragment {
echo "BR2_TOOLCHAIN_EXTERNAL=y" >> ${fragment_file}
echo "BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y" >> ${fragment_file}
echo "BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y" >> ${fragment_file}
echo "BR2_TOOLCHAIN_EXTERNAL_URL=\"${base_url}/toolchains/${arch_name}/tarballs/${release_name}.tar.bz2\"" >> ${fragment_file}
echo "BR2_TOOLCHAIN_EXTERNAL_URL=\"${base_url}/toolchains/${arch_name}/tarballs/${release_name}.tar.xz\"" >> ${fragment_file}
echo "BR2_TOOLCHAIN_EXTERNAL_GCC_${gcc_version}=y" >> ${fragment_file}
echo "BR2_TOOLCHAIN_EXTERNAL_HEADERS_${linux_version}=y" >> ${fragment_file}
if [ "${locale}" == "y" ]; then
Expand Down Expand Up @@ -274,10 +274,10 @@ follow these steps:
EOF

# Make the tarball
echo "Packaging the toolchain as ${release_name}.tar.bz2"
echo "Packaging the toolchain as ${release_name}.tar.xz"
cd ${build_dir}
tar cjf `basename ${release_name}`.tar.bz2 `basename ${toolchain_dir}`
sha256sum ${release_name}.tar.bz2 > ${release_name}.sha256
tar cJf `basename ${release_name}`.tar.xz `basename ${toolchain_dir}`
sha256sum ${release_name}.tar.xz > ${release_name}.sha256

cp ${readme_file} ${build_dir}/README.txt
cp ${summary_file} ${build_dir}/summary.csv
Expand Down
6 changes: 3 additions & 3 deletions test-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ function get_buildroot {
function extract_toolchain {
mkdir -p ${toolchain_dir}

if ! test -e ${build_dir}/${release_name}.tar.bz2 ; then
echo "Artifacts ${release_name}.tar.bz2 missing"
if ! test -e ${build_dir}/${release_name}.tar.xz ; then
echo "Artifacts ${release_name}.tar.xz missing"
exit 1
fi

echo "Extracting toolchain tarball"
tar --strip-components=1 -C ${toolchain_dir} -xf ${build_dir}/${release_name}.tar.bz2
tar --strip-components=1 -C ${toolchain_dir} -xf ${build_dir}/${release_name}.tar.xz
}

function main {
Expand Down
2 changes: 1 addition & 1 deletion upload-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function main {
rsync ${build_dir}/summary.csv \
${ssh_server}:${upload_folder}/summaries/${release_name}.csv
# Toolchain tarball
rsync ${build_dir}/${release_name}.tar.bz2 \
rsync ${build_dir}/${release_name}.tar.xz \
${ssh_server}:${upload_folder}/tarballs/
# Toolchain tarball checksum
rsync ${build_dir}/${release_name}.sha256 \
Expand Down

0 comments on commit 620f76a

Please sign in to comment.