Copy resulting images to top level /R directory of the chroot

to match behavior of 'make install' target of src/release/.
Generate sha256 and md5 checksums while here.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2014-01-27 13:28:55 +00:00
parent 3da8636145
commit 416b6e64c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/user/gjb/hacking/release-embedded/; revision=261210

View File

@ -75,6 +75,10 @@ main() {
install_uboot
eval chroot ${CHROOTDIR} /bin/sh /tmp/crochet/crochet.sh \
-c /tmp/external/${XDEV}/crochet-${KERNEL}.conf
mkdir -p ${CHROOTDIR}/R/
cp -p ${CHROOTDIR}/usr/obj/*.img ${CHROOTDIR}/R/
cd ${CHROOTDIR}/R/ && sha256 FreeBSD*.img > CHECKSUM.SHA256
cd ${CHROOTDIR}/R/ && md5 FreeBSD*.img > CHECKSUM.MD5
}
main "$@"