When building multiple kernels using KERNCONF, non-existent KERNCONF

files will produce an error and buildkernel will fail. Previously missing
KERNCONF files silently failed giving no indication as to why, only to
subsequently discover during installkernel that the desired kernel was
never built in the first place.

Reviewed by:		ngie@
MFC after:		1 week
Differential Revision:	D7167
This commit is contained in:
Cy Schubert 2016-07-15 04:43:38 +00:00
parent 7d590c7345
commit 507cef9302

View File

@ -1140,6 +1140,8 @@ BUILDKERNELS+= ${_kernel}
.if empty(INSTALLKERNEL) && !defined(NO_INSTALLKERNEL)
INSTALLKERNEL= ${_kernel}
.endif
.else
.error Missing KERNCONF ${KERNCONFDIR}/${_kernel}
.endif
.endfor