Index: head/Makefile.inc1 =================================================================== --- head/Makefile.inc1 +++ head/Makefile.inc1 @@ -1674,6 +1674,7 @@ # installkernel installkernel.debug \ reinstallkernel reinstallkernel.debug: _installcheck_kernel .PHONY +.if !defined(USEKERNCONFNAME) .if !defined(NO_INSTALLKERNEL) .if empty(INSTALLKERNEL) @echo "ERROR: No kernel \"${KERNCONF}\" to install."; \ @@ -1701,6 +1702,21 @@ @echo ">>> Installing kernel ${_kernel} completed on $$(LC_ALL=C date)" @echo "--------------------------------------------------------------" .endfor +.endif +.else +.if defined(BUILDKERNELS) +.for _kernel in ${BUILDKERNELS} + @echo "--------------------------------------------------------------" + @echo ">>> Installing kernel ${_kernel} $$(LC_ALL=C date)" + @echo "--------------------------------------------------------------" + ${_+_}cd ${KRNLOBJDIR}/${_kernel}; \ + ${CROSSENV} PATH=${TMPPATH} \ + ${MAKE} ${IMAKE_INSTALL} KERNEL=${_kernel} ${.TARGET:S/kernel//} + @echo "--------------------------------------------------------------" + @echo ">>> Installing kernel ${_kernel} completed on $$(LC_ALL=C date)" + @echo "--------------------------------------------------------------" +.endfor +.endif .endif distributekernel distributekernel.debug: .PHONY