Page MenuHomeFreeBSD

Centralize definition of ZFSTOP
ClosedPublic

Authored by jhb on Mon, Nov 17, 5:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 10, 2:22 PM
Unknown Object (File)
Sun, Nov 30, 3:52 PM
Unknown Object (File)
Fri, Nov 28, 1:41 PM
Unknown Object (File)
Fri, Nov 28, 6:06 AM
Unknown Object (File)
Fri, Nov 21, 9:53 PM
Unknown Object (File)
Fri, Nov 21, 12:36 PM
Unknown Object (File)
Thu, Nov 20, 9:23 AM
Unknown Object (File)
Thu, Nov 20, 2:02 AM

Details

Summary

Define this helper variable in one place and make it available while
building the entire base system.

Obtained from: CheriBSD (mostly)

Diff Detail

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

Event Timeline

jhb requested review of this revision.Mon, Nov 17, 5:31 PM

In CheriBSD we have a second import of ZFS (with various CHERI patches applied) which is why we benefit from having a single definition of this variable, but I think the cleanup of using ZFSTOP more widely is nice regardless as it makes several long lines a bit shorter.

share/mk/src.sys.mk
51

@sjg Is this the right place to put a definition for a variable that is shared across the entire src tree?

Very happy to have the duplication removed

share/mk/src.sys.mk
51

It is certainly not unreasonable. There are potentially many makefiles included before this, if you want to allow any of those to provide an alternative, you might want to use ?= here.

Eg. in our trees at work (with site.*.mk) there are 29 makefiles read before src.sys.mk, even in upstream main, there are 17 makefiles read first.

share/mk/src.sys.mk
51

Hmm, I guess it can't hurt to use ?= here, but I didn't really envision this being something you would override. OTOH, perhaps using a local.*.mk downstream in CheriBSD would be nicer than a local diff that modifies this one line.

This revision is now accepted and ready to land.Mon, Nov 24, 1:32 AM

The loader could use this in defs.mk

This revision was automatically updated to reflect the committed changes.