#
9e2b8720 |
| 18-Sep-2024 |
Stephen J. Kiernan <stevek@FreeBSD.org> |
Allow additional "options" files to be specified in kernel config
The "includeoptions" directive can be used to specify an additional options file to be used.
This is useful in conjunction with the
Allow additional "options" files to be specified in kernel config
The "includeoptions" directive can be used to specify an additional options file to be used.
This is useful in conjunction with the "files" directive for build environments to be able to add custom files and options.
Add "-v" flag to enable verbose mode. Added some additional error messages when in verbose mode.
Obtained from: Juniper Networks, Inc. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D39540
show more ...
|
Revision tags: release/13.4.0 |
|
#
c0c066f8 |
| 03-Jun-2024 |
Warner Losh <imp@FreeBSD.org> |
config: Remove redundant code
since errx is marked dead2, we don't need this.
Noticed by: jrtc27 Sponsored by: Netflix
|
#
5dda778d |
| 03-Jun-2024 |
Dapeng Gao <dg612@cam.ac.uk> |
Use correct function declaration for yyerror
According to the POSIX standard at https://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html `yyerror` should return `int`. Add unreachable si
Use correct function declaration for yyerror
According to the POSIX standard at https://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html `yyerror` should return `int`. Add unreachable since errx never returns.
Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D45447
show more ...
|
Revision tags: release/14.1.0, release/13.3.0 |
|
#
8a7b6120 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a p
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
42b38843 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
Revision tags: release/13.2.0 |
|
#
b9c8f490 |
| 24-Feb-2023 |
Kyle Evans <kevans@FreeBSD.org> |
config: drop reference to removed System_spec
Fixes the following warning:
yacc: w - the symbol System_spec is undefined yacc: 3 rules never reduced
Reported by: otis Fixes: 6a836ea741c7 ("config(
config: drop reference to removed System_spec
Fixes the following warning:
yacc: w - the symbol System_spec is undefined yacc: 3 rules never reduced
Reported by: otis Fixes: 6a836ea741c7 ("config(8): Remove obsolete 'config' directive.")
show more ...
|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
6a836ea7 |
| 17-Jun-2021 |
Warner Losh <imp@FreeBSD.org> |
config(8): Remove obsolete 'config' directive.
The "config" line in config files has been obsolete since FreeBSD 4.x when we moved to having the boot loader pass in the root device. Remove it.
MFC
config(8): Remove obsolete 'config' directive.
The "config" line in config files has been obsolete since FreeBSD 4.x when we moved to having the boot loader pass in the root device. Remove it.
MFC After: 1 week Sponsored by: Netflix
show more ...
|
Revision tags: release/13.0.0 |
|
#
69efe369 |
| 01-Apr-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
config(8): remove support for -p
and other equivalent ways to request mcount-based profiling, like 'profile N' in kernel config.
Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential r
config(8): remove support for -p
and other equivalent ways to request mcount-based profiling, like 'profile N' in kernel config.
Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D29529
show more ...
|
Revision tags: release/12.2.0, release/11.4.0 |
|
#
1f374d0c |
| 24-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358263 through r358268.
|
#
9bcb7418 |
| 24-Feb-2020 |
Warner Losh <imp@FreeBSD.org> |
Relax machine directives a little.
Currently, you can have multiple machine directives if they are otherwise identical. Relax this so that only the machinename part is the same. This allows one to c
Relax machine directives a little.
Currently, you can have multiple machine directives if they are otherwise identical. Relax this so that only the machinename part is the same. This allows one to change the machine arch in a different config file you've included easily.
show more ...
|
Revision tags: release/12.1.0, release/11.3.0 |
|
#
7648bc9f |
| 13-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @347527
Sponsored by: The FreeBSD Foundation
|
#
91221f54 |
| 16-Apr-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
config: Only warn if duplicate option/device comes from the same file
This is useful for arm (possibly other arches too) where we want to have a GENERIC kernel that only include files for the differ
config: Only warn if duplicate option/device comes from the same file
This is useful for arm (possibly other arches too) where we want to have a GENERIC kernel that only include files for the different SoC. Since multiple SoCs/Board needs the same device we would need to do either :
Include the device in a generic file Include the device in each file that really needs it
Option 1 works but if someone wants to create a specific kernel config (which isn't uncommon for embedded system), he will need to add a lots of nodevice to it.
Option 2 also works but produce a lots of warnings.
Reviewed by: kevans MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D19424
show more ...
|
#
ac0a7e2a |
| 22-Dec-2018 |
Kyle Evans <kevans@FreeBSD.org> |
config(8): Remove all instances of an option when opting out
Quick follow-up to r342362: options can appear multiple times now, so clean up all of them as needed. For non-OPTIONS options, this has n
config(8): Remove all instances of an option when opting out
Quick follow-up to r342362: options can appear multiple times now, so clean up all of them as needed. For non-OPTIONS options, this has no effect since they're already de-duplicated.
MFC after: 1 week X-MFC-With: r342362
show more ...
|
#
993e5c4f |
| 22-Dec-2018 |
Kyle Evans <kevans@FreeBSD.org> |
config(8): Allow duplicate options to be specified
config(8)'s option handling has been written to allow duplicate options; if the value changes, then the latest value is used and an informative mes
config(8): Allow duplicate options to be specified
config(8)'s option handling has been written to allow duplicate options; if the value changes, then the latest value is used and an informative message is printed to stderr like so:
/usr/src/sys/amd64/conf/TEST: option "VERBOSE_SYSINIT" redefined from 0 to 1
Currently, this is only a possibility for cpu types, MAXUSERS, and MACHINE_ARCH. Anything else duplicated in a config file will use the first value set and error about duplicated options on subsequent appearances, which is arguably unfriendly since one could specify:
include GENERIC nooptions VERBOSE_SYSINIT options VERBOSE_SYSINIT
to redefine the value later anyways.
Reported by: mmacy MFC after: 1 week
show more ...
|
Revision tags: release/12.0.0 |
|
#
39d44f7f |
| 05-Jul-2018 |
Kyle Evans <kevans@FreeBSD.org> |
kern_environment: use any provided environments, evict hintmode/envmode
At the moment, hintmode and envmode are used to indicate whether static hints or static env have been provided in the kernel c
kern_environment: use any provided environments, evict hintmode/envmode
At the moment, hintmode and envmode are used to indicate whether static hints or static env have been provided in the kernel config(5) and the static versions are mutually exclusive with loader(8)-provided environment. hintmode *can* be reconfigured later to pull from the dynamic environment, thus taking advantage of the loader(8) or post-kmem environment setting.
This changeset fixes both problems at once to move us from a semi-confusing state to a consistent state: if an environment file, hints file, or loader(8) environment are provided, we use them in a well-known order of precedence:
- loader(8) environment - static environment - static hints file
Once the dynamic environment is setup this becomes a moot point. The loader(8) and static environments are merged (respecting the above order of precedence), and the static hints are merged in on an as-needed basis after the dynamic environment has been setup.
Hints lookup are changed to respect all of the above. Before the dynamic environment is setup, lookups use the above-mentioned order and fallback to the next environment if a matching hint is not found. Once the dynamic environment is setup, that is used on its own since it captures all of the above information plus any dynamic kenv settings that came up later in boot.
The following tangentially related changes were made to res_find:
- A hintp cookie is now passed in so that related searches continue using the chain of environments (or dynamic environment) without relying on global state - All three environments will be searched if they actually have valid hints to use, rather than just choosing the first environment that actually had a hint and rolling with that only
The hintmode sysctl has been ripped out. static_{env,hints}.disabled are still honored and will disable their respective environments from being used for hint lookups and from being merged into the dynamic environment, as expected.
MFC after: 1 month (maybe) Differential Revision: https://reviews.freebsd.org/D15953
show more ...
|
#
e2868734 |
| 05-Jul-2018 |
Kyle Evans <kevans@FreeBSD.org> |
Revert r335995 due to accidental changes snuck in
|
#
8ef58863 |
| 05-Jul-2018 |
Kyle Evans <kevans@FreeBSD.org> |
kern_environment: use any provided environments, evict hintmode/envmode
At the moment, hintmode and envmode are used to indicate whether static hints or static env have been provided in the kernel c
kern_environment: use any provided environments, evict hintmode/envmode
At the moment, hintmode and envmode are used to indicate whether static hints or static env have been provided in the kernel config(5) and the static versions are mutually exclusive with loader(8)-provided environment. hintmode *can* be reconfigured later to pull from the dynamic environment, thus taking advantage of the loader(8) or post-kmem environment setting.
This changeset fixes both problems at once to move us from a semi-confusing state to a consistent state: if an environment file, hints file, or loader(8) environment are provided, we use them in a well-known order of precedence:
- loader(8) environment - static environment - static hints file
Once the dynamic environment is setup this becomes a moot point. The loader(8) and static environments are merged (respecting the above order of precedence), and the static hints are merged in on an as-needed basis after the dynamic environment has been setup.
Hints lookup are changed to respect all of the above. Before the dynamic environment is setup, lookups use the above-mentioned order and fallback to the next environment if a matching hint is not found. Once the dynamic environment is setup, that is used on its own since it captures all of the above information plus any dynamic kenv settings that came up later in boot.
The following tangentially related changes were made to res_find:
- A hintp cookie is now passed in so that related searches continue using the chain of environments (or dynamic environment) without relying on global state - All three environments will be searched if they actually have valid hints to use, rather than just choosing the first environment that actually had a hint and rolling with that only
The hintmode sysctl has been ripped out. static_{env,hints}.disabled are still honored and will disable their respective environments from being used for hint lookups and from being merged into the dynamic environment, as expected.
MFC after: 1 month (maybe) Differential Revision: https://reviews.freebsd.org/D15953
show more ...
|
#
6ffdd5ef |
| 26-Jun-2018 |
Kyle Evans <kevans@FreeBSD.org> |
config(8): Flip the order of concatenation for `hints` and `env`
As previously noted, kernel's processing of these means that the first appearance of a hint/variable wins. Flipping the order of conc
config(8): Flip the order of concatenation for `hints` and `env`
As previously noted, kernel's processing of these means that the first appearance of a hint/variable wins. Flipping the order of concatenation means that later variables override earlier variables, as expected when one does:
hints x hints y
Where perhaps x is:
hint.aw_sid.0.disable=1
and y is:
hint.aw_sid.0.disable=0
The expectation would be that a later appearing variable would override an earlier appearing variable, such as with `device`/`nodevice`, device.hints, and other similarly structured data files.
show more ...
|
#
4edfa908 |
| 26-Jun-2018 |
Kyle Evans <kevans@FreeBSD.org> |
config(8): Make 'env' files consistent with other file-accepting options
Previously, only one 'env' file could be specified. Later 'env' directives would overwrite earlier 'env' directives. This is
config(8): Make 'env' files consistent with other file-accepting options
Previously, only one 'env' file could be specified. Later 'env' directives would overwrite earlier 'env' directives. This is inconsistent with every other file-accepting directives which process files in order, including hints.
A caveat applies to both hints and env that isn't mentioned: they're concatenated in the order of appearance, so they're not actually applied in the way one might think by supplying:
hints x hints y
Hints in x will take precedence over same-name hints in y due to how the kernel processes them, stopping at the first line that matches the hint we're searching for. Future work will flip the order of concatenation so that later files may still properly override earlier files.
In practice, this likely doesn't matter at all due to the nature of the beast.
show more ...
|
#
1aae2365 |
| 26-Jun-2018 |
Kyle Evans <kevans@FreeBSD.org> |
config(8): Set envmode if we accept an envvar
X-MFC-With: r335642
|
#
3b31596d |
| 25-Jun-2018 |
Kyle Evans <kevans@FreeBSD.org> |
config(8): Add `envvar` support
envvar allows adding individual environment variables to the kernel's static environment without the overhead of pulling in a full file. envvar in a config looks like
config(8): Add `envvar` support
envvar allows adding individual environment variables to the kernel's static environment without the overhead of pulling in a full file. envvar in a config looks like:
envvar some_var=5
All envvar-provided variables will be added after the env file is processed, so envvar keys that exist in the previous env will be overwritten by whatever value is set here in the kernel configuration directly.
As an aside, envvar lines are intentionally tokenized differently from basically every other line. We used a named state when ENVVAR is encountered to gobble up the rest of the line, which will later be cleaned and validated in post-processing by sanitize_envline. This turns out to be the simplest and cleanest way to allow the flexibility that kenv does while not compromising on silly hacks.
Reviewed by: ian (also contributor of sanitize_envline rewrite) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D15962
show more ...
|
Revision tags: release/11.2.0 |
|
#
82725ba9 |
| 23-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325999 through r326131.
|
#
8a16b7a1 |
| 20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier f
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|
Revision tags: release/10.4.0, release/11.1.0 |
|
#
348238db |
| 01-Mar-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r314420 through r314481.
|
#
fbbd9655 |
| 01-Mar-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|