freebsd-dev/usr.sbin/config
Kyle Evans 3b31596dc8 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
2018-06-25 17:17:47 +00:00
..
config.5 config(8): Add envvar support 2018-06-25 17:17:47 +00:00
config.8 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
config.h config(8): Add envvar support 2018-06-25 17:17:47 +00:00
config.y config(8): Add envvar support 2018-06-25 17:17:47 +00:00
configvers.h Fix 'local' to not look in the source tree for the file. 2017-11-17 18:34:14 +00:00
kernconf.tmpl
lang.l config(8): Add envvar support 2018-06-25 17:17:47 +00:00
main.c config(8): Add envvar support 2018-06-25 17:17:47 +00:00
Makefile Allow config to be compiled from another source directory, such as one 2016-10-26 15:58:41 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mkheaders.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mkmakefile.c config(8): Add envvar support 2018-06-25 17:17:47 +00:00
mkoptions.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00