aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-08 12:50:48 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-08 12:50:48 +0000
commit99cf2362e2c2f4b84d2144632e49ce37911e3491 (patch)
tree6eceef4820e8601eaba058f465025fb3d88155f9 /release/release.sh
parent40847e360bb20909725ee55c6729f8519e0e8738 (diff)
downloadsrc-99cf2362e2c2f4b84d2144632e49ce37911e3491.tar.gz
src-99cf2362e2c2f4b84d2144632e49ce37911e3491.zip
Move the finished image build to the '/R' directory (the
standard 'install' location for other architectures), then compress the image with xz(1), and generate the CHECKSUM files. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282628
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/release/release.sh b/release/release.sh
index c1ab0f6c9527..cdab65474500 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -346,6 +346,14 @@ chroot_arm_armv6_build_release() {
mdconfig -d -u ${mddev}
rmdir ${CHROOTDIR}/${DESTDIR}
mv ${IMGBASE} ${CHROOTDIR}/${OBJDIR}/${OSRELEASE}-${KERNEL}.img
+ chroot ${CHROOTDIR} mkdir -p /R
+ chroot ${CHROOTDIR} cp -p ${OBJDIR}/${OSRELEASE}-${KERNEL}.img \
+ /R/${OSRELEASE}-${KERNEL}.img
+ chroot ${CHROOTDIR} xz -T ${XZ_THREADS} /R/${OSRELEASE}-${KERNEL}.img
+ chroot ${CHROOTDIR} cd /R && sha256 /R/${OSRELEASE}* \
+ > /R/CHECKSUM.SHA256
+ chroot ${CHROOTDIR} cd /R && md5 /R/${OSRELEASE}* \
+ > /R/CHECKSUM.MD5
return 0
} # chroot_arm_armv6_build_release()