mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
ci: Redirect output for builds.
This target is far too noisy to be at all useful. Save the output ala make universe in _. files. Also report where to find errors. Sponsored by: Netflix
This commit is contained in:
parent
be3631bc8d
commit
a5f03413aa
@ -147,19 +147,31 @@ beforeclean: .PHONY
|
||||
clean: beforeclean .PHONY
|
||||
|
||||
ci-buildworld: .PHONY
|
||||
${IMAKE} -j${PARALLEL_JOBS} -C ${WORLDDIR} ${METAMODE} ${CROSS_TOOLCHAIN_PARAM} __MAKE_CONF=${MAKECONF} SRCCONF=${SRCCONF} buildworld
|
||||
@echo "Building world for ${TARGET_ARCH}"
|
||||
${IMAKE} -j${PARALLEL_JOBS} -C ${WORLDDIR} ${METAMODE} \
|
||||
${CROSS_TOOLCHAIN_PARAM} __MAKE_CONF=${MAKECONF} SRCCONF=${SRCCONF} \
|
||||
buildworld > ${.CURDIR}/_.${TARGET_ARCH}.${.TARGET} 2>&1 || \
|
||||
(echo "${.TARGET} failed, check _.${TARGET_ARCH}.${.TARGET} for details" ; false)
|
||||
|
||||
|
||||
ci-buildkernel: ci-buildworld-${TARGET_ARCH:tl} .PHONY
|
||||
${IMAKE} -j${PARALLEL_JOBS} -C ${WORLDDIR} ${METAMODE} ${CROSS_TOOLCHAIN_PARAM} __MAKE_CONF=${MAKECONF} SRCCONF=${SRCCONF} buildkernel
|
||||
@echo "Building kenrel for ${TARGET_ARCH"}"
|
||||
${IMAKE} -j${PARALLEL_JOBS} -C ${WORLDDIR} ${METAMODE} \
|
||||
${CROSS_TOOLCHAIN_PARAM} __MAKE_CONF=${MAKECONF} \
|
||||
SRCCONF=${SRCCONF} buildkernel > ${.CURDIR}/_.${TARGET_ARCH}.${.TARGET} 2>&1 || \
|
||||
(echo "${.TARGET} failed, check _.${TARGET_ARCH}.${.TARGET} for details" ; false)
|
||||
|
||||
ci-buildimage: ${QEMUTGT} ci-buildkernel-${TARGET_ARCH:tl} .PHONY
|
||||
@echo "Building ci image for ${TARGET_ARCH"}"
|
||||
mkdir -p ${.OBJDIR}/${.TARGET}
|
||||
env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} SWAPSIZE=${SWAPSIZE} \
|
||||
QEMUSTATIC=${QEMUSTATIC} CITYPE=${CITYPE} \
|
||||
${RELEASEDIR}/scripts/mk-vmimage.sh \
|
||||
-C ${RELEASEDIR}/tools/vmimage.subr -d ${.OBJDIR}/${.TARGET} -F ${VMFS} \
|
||||
-i ${.OBJDIR}/ci.img -s ${VMSIZE} -f ${FORMAT} \
|
||||
-S ${WORLDDIR} -o ${.OBJDIR}/${CIIMAGE} -c ${CICONF}
|
||||
-S ${WORLDDIR} -o ${.OBJDIR}/${CIIMAGE} -c ${CICONF} \
|
||||
> ${.CURDIR}/_.${TARGET_ARCH}.${.TARGET} 2>&1 || \
|
||||
(echo "${.TARGET} failed, check _.${TARGET_ARCH}.${.TARGET} for details" ; false)
|
||||
touch ${.TARGET}
|
||||
|
||||
ci-setsmokevar: .PHONY
|
||||
|
Loading…
Reference in New Issue
Block a user