1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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
This commit is contained in:
Glen Barber 2015-05-08 12:50:48 +00:00
parent 40847e360b
commit 99cf2362e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-arm-redux/; revision=282628

View File

@ -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()