Page MenuHomeFreeBSD

Fail buildkernel if KERNCONF file not found.
ClosedPublic

Authored by cy on Jul 9 2016, 7:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 12:16 AM
Unknown Object (File)
Dec 15 2023, 12:24 AM
Unknown Object (File)
Dec 15 2023, 12:23 AM
Unknown Object (File)
Oct 18 2023, 12:57 PM
Unknown Object (File)
Jun 21 2023, 3:21 AM
Unknown Object (File)
May 15 2023, 3:03 PM
Unknown Object (File)
Apr 26 2023, 3:50 PM
Unknown Object (File)
Jan 14 2023, 10:56 PM
Subscribers

Details

Summary

When building multiple kernels as in below:

KERNCONF?= BREAK PROD
INSTALLKERNEL?= BREAK

Should one of the kernel config files not exist, there is no indication
of error. Make buildkernel builds successfully. This patch causes
buildkernel to fail if any of the KERNCONF files is missing.

Test Plan

slippy$ make -DKQDTRACE buildkernel
make[1]: "/export/home/cy/freebsd/svn2/current/Makefile.inc1" line 1144: Missing KERNCONF /export/home/cy/freebsd/svn2/current/sys/amd64/conf/PROD

  • Error code 1

Stop.
make: stopped in /export/home/cy/freebsd/svn2/current
slippy$

make.conf contains the following,

.ifdef KQDTRACE
KERNCONF?= BREAK PROD
INSTALLKERNEL?= BREAK
ALL_MODLES= yes
.endif

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cy retitled this revision from to Fail buildkernel if KERNCONF file not found..
cy updated this object.
cy edited the test plan for this revision. (Show Details)
cy added reviewers: glebius, ngie, bdrewery, imp, gjb, delphij.

This seems ok to me at least. Have you tested out this change with make tinderbox?

This will definitely deserve Relnotes as it could break someone's usecase.

Tinderbox build passed.

Relnotes and UPDATING, for sure.