aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-03-02 18:04:57 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-03-02 18:04:57 +0000
commite37709dbabbb43d8d7f63cfd323851900a91bfe7 (patch)
treefd3dafb0eaec3b66807a5825c10dcf881d944eac
parent11d8451df3d33c5bb876da719ac65e8fc64154f6 (diff)
downloadsrc-e37709dbabbb43d8d7f63cfd323851900a91bfe7.tar.gz
src-e37709dbabbb43d8d7f63cfd323851900a91bfe7.zip
Use xz(1) to compress FreeBSD/arm images.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=279532
-rwxr-xr-xrelease/arm/release.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/release/arm/release.sh b/release/arm/release.sh
index dbbdbf53202a..e596aa311b61 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 "$@"