Skip to content

Commit

Permalink
Add a "hexagon_minivm" tarball
Browse files Browse the repository at this point in the history
The minivm tarball can be used to test QEMU and it's another way
to distribute minivm independently.

Also: change rootfs compression to gzip.

Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
  • Loading branch information
androm3da committed Dec 14, 2024
1 parent d76d946 commit 366ceae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,12 @@ build_kernel


if [[ ${MAKE_TARBALLS-0} -eq 1 ]]; then
tar c -C $(dirname ${ROOT_INSTALL_REL}) $(basename ${ROOT_INSTALL_REL}) | xz -e9T0 > ${RESULTS_DIR}/hexagon_rootfs_${STAMP}.tar.xz
# XZ_OPT="-8 --threads=0" tar c ${RESULTS_DIR}/hexagon_rootfs_${STAMP}.tar.xz -C $(dirname ${ROOT_INSTALL_REL}) $(basename ${ROOT_INSTALL_REL})
tar c -C $(dirname ${ROOT_INSTALL_REL}) $(basename ${ROOT_INSTALL_REL})/boot | gzip --fast > ${RESULTS_DIR}/hexagon_minivm_${STAMP}.tar.gz
tar c -C $(dirname ${ROOT_INSTALL_REL}) $(basename ${ROOT_INSTALL_REL}) | gzip --fast > ${RESULTS_DIR}/hexagon_rootfs_${STAMP}.tar.gz

cd ${RESULTS_DIR}
sha256sum hexagon_rootfs_${STAMP}.tar.xz > hexagon_rootfs_${STAMP}.tar.xz.sha256
sha256sum hexagon_minivm_${STAMP}.tar.gz > hexagon_minivm_${STAMP}.tar.gz.sha256
sha256sum hexagon_rootfs_${STAMP}.tar.gz > hexagon_rootfs_${STAMP}.tar.gz.sha256
fi

if [[ ${TEST_TOOLCHAIN-0} -eq 0 ]]; then
Expand Down

0 comments on commit 366ceae

Please sign in to comment.