Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2014 15:26:13 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r271780 - user/gjb/thermite
Message-ID:  <201409181526.s8IFQDxF098280@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Thu Sep 18 15:26:12 2014
New Revision: 271780
URL: http://svnweb.freebsd.org/changeset/base/271780

Log:
  Defer running mk-vmimage.sh until after all normal
  (i.e., ISOs) bits are built.
  
  This eliminates a significant delay between the completion
  of the amd64 ISO creation and the start of the i386
  build (more than one hour).
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  user/gjb/thermite/thermite.sh

Modified: user/gjb/thermite/thermite.sh
==============================================================================
--- user/gjb/thermite/thermite.sh	Thu Sep 18 15:10:22 2014	(r271779)
+++ user/gjb/thermite/thermite.sh	Thu Sep 18 15:26:12 2014	(r271780)
@@ -250,11 +250,8 @@ build_release() {
 
 	send_logmail ${logdir}/${_build}.log ${_build}
 
-	# Short circuit to skip vm image creation for non-x86 architectures.
-	# Also recreate the memstick.img for i386 while here.
+	# Recreate the memstick.img for i386 while here.
 	case ${arch} in
-		amd64)
-			;;
 		i386)
 			/bin/sh ${scriptdir}/remake-memstick.sh \
 				-c ${_conf} >> ${logdir}/${_build}.log
@@ -263,6 +260,23 @@ build_release() {
 			return 0
 			;;
 	esac
+	send_logmail ${logdir}/${_build}.log ${_build}
+	unset _build _conf
+}
+
+build_vmimage() {
+	_build="${rev}-${arch}-${kernel}-${type}"
+	_conf="${scriptdir}/${_build}.conf"
+	source_config || return 0
+
+	case ${arch} in
+		amd64|i386)
+			# continue
+			;;
+		*)
+			return 0
+			;;
+	esac
 	case ${kernel} in
 		GENERIC)
 			info "Building vm image: ${_build}"
@@ -386,6 +400,7 @@ main() {
 	runall build_chroots
 	runall install_chroots
 	runall build_release
+	runall build_vmimage
 }
 
 main "$@"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409181526.s8IFQDxF098280>