Catch typos in the kernel name specified for an "installkernel" invocation
early on, rather than failing later with an obscure error message. Make error messages appear consistent.
This commit is contained in:
parent
325dcf8872
commit
07e5ffba6a
@ -469,7 +469,7 @@ INSTALLKERNEL= ${_kernel}
|
|||||||
#
|
#
|
||||||
buildkernel:
|
buildkernel:
|
||||||
.if empty(BUILDKERNELS)
|
.if empty(BUILDKERNELS)
|
||||||
@echo ">>> ERROR: Missing kernel configuration file(s) (${KERNCONF})."
|
@echo "ERROR: Missing kernel configuration file(s) (${KERNCONF}).";
|
||||||
@false
|
@false
|
||||||
.endif
|
.endif
|
||||||
.if defined(KERNWARN)
|
.if defined(KERNWARN)
|
||||||
@ -528,6 +528,10 @@ buildkernel:
|
|||||||
# Install the kernel defined by INSTALLKERNEL
|
# Install the kernel defined by INSTALLKERNEL
|
||||||
#
|
#
|
||||||
installkernel reinstallkernel:
|
installkernel reinstallkernel:
|
||||||
|
.if empty(INSTALLKERNEL)
|
||||||
|
@echo "ERROR: No kernel \"${KERNCONF}\" to install."
|
||||||
|
@false
|
||||||
|
.endif
|
||||||
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
|
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
|
||||||
${CROSSENV} PATH=${TMPPATH} \
|
${CROSSENV} PATH=${TMPPATH} \
|
||||||
${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}
|
${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}
|
||||||
|
Loading…
Reference in New Issue
Block a user