summaryrefslogtreecommitdiffstats
path: root/release/Makefile.vm
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2014-11-20 03:46:35 +0000
committercperciva <cperciva@FreeBSD.org>2014-11-20 03:46:35 +0000
commit38536134a537e0bdb40e60d84c17bb691424480d (patch)
treec04235ffb11072f0177f63a40cb3e1418dd2e71d /release/Makefile.vm
parent5d6c87f034dfb472153503733292f86cd7e93156 (diff)
downloadFreeBSD-src-38536134a537e0bdb40e60d84c17bb691424480d.zip
FreeBSD-src-38536134a537e0bdb40e60d84c17bb691424480d.tar.gz
Merge duplicative vm-CLOUDTYPE targets before additional duplication gets
added by the impending arrival of ec2 and gcloud.
Diffstat (limited to 'release/Makefile.vm')
-rw-r--r--release/Makefile.vm27
1 files changed, 9 insertions, 18 deletions
diff --git a/release/Makefile.vm b/release/Makefile.vm
index d362324..bb5311f 100644
--- a/release/Makefile.vm
+++ b/release/Makefile.vm
@@ -26,6 +26,15 @@ ${_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
. endif
+
+vm-${_CW:tl}:
+ mkdir -p ${.OBJDIR}/${.TARGET}
+ env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
+ ${.CURDIR}/scripts/mk-vmimage.sh \
+ -C ${.CURDIR}/tools/vmimage.subr -d ${.OBJDIR}/${.TARGET} \
+ -i ${.OBJDIR}/${_CW:tl}.img -s ${VMSIZE} -f ${${_CW}_FORMAT} \
+ -S ${WORLDDIR} -o ${.OBJDIR}/${${_CW}IMAGE} -c ${${_CW}CONF}
+ touch ${.TARGET}
. endfor
.endif
@@ -53,21 +62,3 @@ vm-image:
touch ${.TARGET}
vm-cloudware: ${CLOUDTARGETS}
-
-vm-azure:
- mkdir -p ${.OBJDIR}/${.TARGET}
- env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
- ${.CURDIR}/scripts/mk-vmimage.sh \
- -C ${.CURDIR}/tools/vmimage.subr -d ${.OBJDIR}/${.TARGET} \
- -i ${.OBJDIR}/azure.img -s ${VMSIZE} -f ${AZURE_FORMAT} \
- -S ${WORLDDIR} -o ${.OBJDIR}/${AZUREIMAGE} -c ${AZURECONF}
- touch ${.TARGET}
-
-vm-openstack:
- mkdir -p ${.OBJDIR}/${.TARGET}
- env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
- ${.CURDIR}/scripts/mk-vmimage.sh \
- -C ${.CURDIR}/tools/vmimage.subr -d ${.OBJDIR}/${.TARGET} \
- -i ${.OBJDIR}/openstack.img -s ${VMSIZE} -f ${OPENSTACK_FORMAT} \
- -S ${WORLDDIR} -o ${.OBJDIR}/${OPENSTACKIMAGE} -c ${OPENSTACKCONF}
- touch ${.TARGET}
OpenPOWER on IntegriCloud