Page MenuHomeFreeBSD

config(8): Allow multiple filenames to be specified on the same line.
AbandonedPublic

Authored by hselasky on Dec 1 2021, 4:04 PM.
Tags
None
Referenced Files
F166908138: D33223.id99311.diff
Mon, Aug 17, 4:52 PM
Unknown Object (File)
Thu, Aug 13, 12:23 PM
Unknown Object (File)
Thu, Aug 13, 12:23 PM
Unknown Object (File)
Tue, Aug 11, 2:06 PM
Unknown Object (File)
Mon, Aug 10, 4:53 AM
Unknown Object (File)
Fri, Aug 7, 3:01 PM
Unknown Object (File)
Wed, Jul 29, 3:30 PM
Unknown Object (File)
Wed, Jul 29, 9:25 AM
Subscribers

Details

Reviewers
bz
imp
Summary

Typically multiple files are configured using the exact same options.
Add support to config(8) to accept a pipe character separated list
of filenames which should have all the same options.

This significantly reduces both size and churn on the kernel config
files.

Example:
dev/foo/foo.c | \
dev/foo/goo.c optional xxx

MFC after: 1 week
Sponsored by: NVIDIA Networking

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hselasky created this revision.
hselasky retitled this revision from onfig(8): Allow multiple filenames to be specified on the same line. to config(8): Allow multiple filenames to be specified on the same line..

I think it's very confusing, the pipe is already used for different sets of options.
The resulting files in D33224 are really horrible to read.

In D33223#751011, @manu wrote:

I think it's very confusing, the pipe is already used for different sets of options.
The resulting files in D33224 are really horrible to read.

And we can turn file into file list w/o the pipes.

But honestly, I'd rather we hack config(8) to generate some standardish thing that libucl can cope with and then rewrite off of that base. The efforts likely would be smaller or about the same as these cleanups and we'd be miles ahead at the end.