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
Unknown Object (File)
Sun, Apr 7, 12:02 PM
Unknown Object (File)
Jan 14 2024, 2:19 PM
Unknown Object (File)
Dec 22 2023, 9:55 PM
Unknown Object (File)
Nov 4 2023, 9:12 PM
Unknown Object (File)
Nov 2 2023, 4:24 AM
Unknown Object (File)
Oct 3 2023, 9:09 PM
Unknown Object (File)
Sep 30 2023, 4:24 AM
Unknown Object (File)
Sep 29 2023, 9:09 PM
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.