aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-08 10:43:29 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-08 10:43:29 +0000
commitb3e7a59bdf6153059edf5887ffe6853fa9ffbc13 (patch)
treeb74990f86aae0f999a1e3921cc40f71a51a8af36 /release/release.sh
parent78e712f1bcd57a1d5b33395575e03d6a65c93552 (diff)
downloadsrc-b3e7a59bdf6153059edf5887ffe6853fa9ffbc13.tar.gz
src-b3e7a59bdf6153059edf5887ffe6853fa9ffbc13.zip
Rename KERNEL.img -> OSRELEASE-KERNEL.img when complete.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282626
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/release.sh b/release/release.sh
index 4c40dcc523f2..80c68ce98e92 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -334,6 +334,9 @@ chroot_arm_armv6_build_release() {
OBJDIR="$(eval chroot ${CHROOTDIR} make -C /usr/src/release -V .OBJDIR)"
DESTDIR="${OBJDIR}/${KERNEL}"
IMGBASE="${CHROOTDIR}/${OBJDIR}/${KERNEL}.img"
+ OSRELEASE="$(eval chroot ${CHROOTDIR} make -C /usr/src/release \
+ TARGET=${EMBEDDED_TARGET} TARGET_ARCH=${EMBEDDED_TARGET_ARCH} \
+ -V OSRELEASE)"
mkdir -p ${CHROOTDIR}/${DESTDIR}
truncate -s ${IMAGE_SIZE} ${IMGBASE}
export mddev=$(mdconfig -f ${IMGBASE} ${MD_ARGS})
@@ -342,6 +345,7 @@ chroot_arm_armv6_build_release() {
arm_install_uboot
mdconfig -d -u ${mddev}
rmdir ${CHROOTDIR}/${DESTDIR}
+ mv ${IMGBASE} ${IMGBASE}-${KERNEL}.img
return 0
} # chroot_arm_armv6_build_release()