diff options
author | gjb <gjb@FreeBSD.org> | 2015-03-02 18:04:57 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-03-02 18:04:57 +0000 |
commit | 9ffc8ca9a2640c7ab60180395209ce0a54fe0ff4 (patch) | |
tree | fd3dafb0eaec3b66807a5825c10dcf881d944eac /release | |
parent | 9d87f6a3c3e6dba5c4f2e3c6d5a28f4de6a9d59e (diff) | |
download | FreeBSD-src-9ffc8ca9a2640c7ab60180395209ce0a54fe0ff4.zip FreeBSD-src-9ffc8ca9a2640c7ab60180395209ce0a54fe0ff4.tar.gz |
Use xz(1) to compress FreeBSD/arm images.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rwxr-xr-x | release/arm/release.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/release/arm/release.sh b/release/arm/release.sh index dbbdbf5..e596aa3 100755 --- a/release/arm/release.sh +++ b/release/arm/release.sh @@ -99,6 +99,7 @@ main() { BRANCH=$(chroot ${CHROOTDIR} make -C /usr/src/release -V BRANCH) UNAME_r=${REVISION}-${BRANCH} export UNAME_r + export XZ_CMD=$(make -C /usr/src/release -V XZ_CMD) # Build the 'xdev' target for crochet. eval chroot ${CHROOTDIR} make -C /usr/src \ @@ -146,9 +147,9 @@ main() { -c /tmp/external/${XDEV}/crochet-${KERNEL}.conf mkdir -p ${CHROOTDIR}/R/ cp -p ${CHROOTDIR}/usr/obj/*.img ${CHROOTDIR}/R/ - bzip2 ${CHROOTDIR}/R/FreeBSD*.img - cd ${CHROOTDIR}/R/ && sha256 FreeBSD*.img.bz2 > CHECKSUM.SHA256 - cd ${CHROOTDIR}/R/ && md5 FreeBSD*.img.bz2 > CHECKSUM.MD5 + ${XZ_CMD} ${CHROOTDIR}/R/FreeBSD*.img + cd ${CHROOTDIR}/R/ && sha256 FreeBSD*.img.xz > CHECKSUM.SHA256 + cd ${CHROOTDIR}/R/ && md5 FreeBSD*.img.xz > CHECKSUM.MD5 } main "$@" |