Page MenuHomeFreeBSD

src.sys.mk: Support src.conf in SRCTOP
ClosedPublic

Authored by des on Sep 10 2025, 1:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 15, 6:43 AM
Unknown Object (File)
Wed, Jul 15, 6:43 AM
Unknown Object (File)
Tue, Jul 7, 10:09 AM
Unknown Object (File)
Sun, Jul 5, 5:22 PM
Unknown Object (File)
Jun 19 2026, 10:17 PM
Unknown Object (File)
Jun 16 2026, 1:25 AM
Unknown Object (File)
Jun 15 2026, 8:41 PM
Unknown Object (File)
Jun 15 2026, 4:58 AM

Details

Summary

If SRCCONF is not defined and src.conf exists at the top level of the
source tree, use that instead of /etc/src.conf.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Sep 10 2025, 1:13 PM

I think this is a good idea

+1

Can we preemptively add /src.conf to .gitignore if we do this?

Also agreed with kevans: please add /src.conf to .gitignore

This revision is now accepted and ready to land.Sep 10 2025, 2:49 PM
share/mk/src.sys.mk
2

Presumably also want to update the kern.pre.mk version.

This revision now requires review to proceed.Sep 10 2025, 3:48 PM
des marked an inline comment as done.Sep 10 2025, 3:51 PM
This revision is now accepted and ready to land.Sep 10 2025, 4:48 PM
This revision was automatically updated to reflect the committed changes.