From e6a5a5106d670f724f46b0afb851fb99092b2eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 29 Jul 2022 14:44:21 +0200 Subject: [PATCH] packaging: Generate a tarball as OVMF build result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of having as a result the directory where OVMF artefacts where installed, let's follow what we do with the other components and have a tarball as a result of the OVMF build. Signed-off-by: Fabiano FidĂȘncio --- tools/packaging/static-build/ovmf/build-ovmf.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/packaging/static-build/ovmf/build-ovmf.sh b/tools/packaging/static-build/ovmf/build-ovmf.sh index fd4586cd4a..906293ee5b 100755 --- a/tools/packaging/static-build/ovmf/build-ovmf.sh +++ b/tools/packaging/static-build/ovmf/build-ovmf.sh @@ -67,3 +67,8 @@ popd info "Install fd to destdir" mkdir -p "$DESTDIR/$PREFIX/share/ovmf" cp $build_root/$ovmf_dir/"${build_path}" "$DESTDIR/$PREFIX/share/ovmf" + +pushd $DESTDIR +tar -czvf "${ovmf_dir}-${ovmf_build}.tar.gz" "./$PREFIX" +rm -rf $(dirname ./$PREFIX) +popd