aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.vm
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-02-24 22:27:02 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-02-24 22:27:02 +0000
commitdc1c45001a7cc8862962a000f87295eb04c5f252 (patch)
tree7e5fa6d3bccb32bb1d92747731459da441760e82 /release/Makefile.vm
parent2cf395883e91b971ce3fb5fe664244eb6137a5ab (diff)
downloadsrc-dc1c45001a7cc8862962a000f87295eb04c5f252.tar.gz
src-dc1c45001a7cc8862962a000f87295eb04c5f252.zip
Add a CLOUDPACKAGE variable to contain a list of targets for
post-install packaging cloud provider images. Add a 'gce-package.sh' script to generate the final output image ready for upload to the GCE platform. Right now, this is the only image that has a specific output format (GNU-tar), and this implementation is expected to be temporary. This is not directly connected to the other release targets. MFC after: 1 week X-MFC-with: r279249, r279250 Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=279257
Diffstat (limited to 'release/Makefile.vm')
-rw-r--r--release/Makefile.vm14
1 files changed, 13 insertions, 1 deletions
diff --git a/release/Makefile.vm b/release/Makefile.vm
index 1b3c011bb65a..6ec7d6db7e1f 100644
--- a/release/Makefile.vm
+++ b/release/Makefile.vm
@@ -34,8 +34,10 @@ CLOUDTARGETS+= cw-${_CW:tl}
CLEANDIRS+= cw-${_CW:tl}
CLEANFILES+= ${_CW:tl}.img \
${_CW:tl}.${${_CW:tu}_FORMAT} \
- ${_CW:tl}.${${_CW:tu}_FORMAT}.raw
+ ${_CW:tl}.${${_CW:tu}_FORMAT}.raw \
+ cw${_CW:tl}-package
CLOUDINSTALL+= cw${_CW:tl}-install
+CLOUDPACKAGE+= cw${_CW:tl}-package
${_CW:tu}IMAGE= ${_CW:tl}.${${_CW:tu}_FORMAT}
. if exists(${.CURDIR}/tools/${_CW:tl}.conf) && !defined(${_CW:tu}CONF)
${_CW:tu}CONF?= ${.CURDIR}/tools/${_CW:tl}.conf
@@ -59,6 +61,16 @@ cw${_CW:tl}-install:
cd ${DESTDIR}/${_CW:tl} && md5 ${${_CW}_DISK}* > \
${DESTDIR}/${_CW:tl}/CHECKSUM.MD5
+cw${_CW:tl}-package:
+ @# Special target to handle packaging cloud images in the formats
+ @# specific to each hosting provider.
+.if exists(${.CURDIR}/tools/${_CW:tl}-package.sh)
+ env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
+ ${.CURDIR}/tools/${_CW:tl}-package.sh \
+ -D ${DESTDIR} -I ${${_CW}_DISK} -S ${WORLDDIR}
+.endif
+ touch ${.TARGET}
+
. endfor
.endif