diff --git a/Makefile.inc1 b/Makefile.inc1 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1827,6 +1827,12 @@ # # Install the kernel defined by INSTALLKERNEL # +.if defined(PACKAGE_BUILDING) +_instkernel=${INSTALLKERNEL}.${INSTKERNNAME} +.else +_instkernel=${INSTKERNNAME} +.endif + installkernel installkernel.debug \ reinstallkernel reinstallkernel.debug: _installcheck_kernel .PHONY .if !defined(NO_INSTALLKERNEL) @@ -1839,9 +1845,9 @@ @echo "--------------------------------------------------------------" ${_+_}cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \ ${CROSSENV} PATH=${TMPPATH:Q} \ - ${MAKE} ${IMAKE_INSTALL} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel//} + ${MAKE} ${IMAKE_INSTALL} KERNEL=${_instkernel} ${.TARGET:S/kernel//} @echo "--------------------------------------------------------------" - @echo ">>> Installing kernel ${INSTALLKERNEL} completed on $$(LC_ALL=C date)" + @echo ">>> Installing kernel ${_instkernel} completed on $$(LC_ALL=C date)" @echo "--------------------------------------------------------------" .endif .if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"