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)
Sat, Nov 23, 3:29 PM
Unknown Object (File)
Sat, Nov 23, 11:41 AM
Unknown Object (File)
Nov 11 2024, 8:37 AM
Unknown Object (File)
Oct 2 2024, 10:58 AM
Unknown Object (File)
Oct 1 2024, 11:18 PM
Unknown Object (File)
Sep 30 2024, 2:37 AM
Unknown Object (File)
Sep 28 2024, 5:42 PM
Unknown Object (File)
Sep 21 2024, 4:54 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 4467
Build 4518: arc lint + arc unit

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.