td-shim: Adjust final tarball location

Let's create the td-shim tarball in the directory where the script was
called from, instead of doing it in the $DESTDIR.

This aligns with the logic being used for creating / extracting the
tarball content, which is already in use by the kata-deploy local build
scripts.

Fixes: #4809

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2022-08-03 14:47:03 +02:00
parent 62f05d4b48
commit 8d1cb1d513

View File

@ -35,7 +35,8 @@ install target/x86_64-unknown-uefi/release/final-boot-kernel.bin ${install_dir}/
popd #td-shim popd #td-shim
popd #${build_root} popd #${build_root}
local_dir=${PWD}
pushd ${DESTDIR} pushd ${DESTDIR}
tar -czvf "td-shim.tar.gz" "./$PREFIX" tar -czvf "${local_dir}/td-shim.tar.gz" "./$PREFIX"
rm -rf $(dirname ./$PREFIX) rm -rf $(dirname ./$PREFIX)
popd #${DESTDIR} popd #${DESTDIR}