Home | History | Annotate | Download | only in config
History log of /src/usr.bin/config/mkheaders.c
RevisionDateAuthorComments
 1.30  07-Jan-2025  joe clear: trailing whitespaces
 1.29  03-Sep-2015  uebayasi After thought, revert "Generate *.c files under conf/". Generate *.c files
under top build directory. *.c files are never placed just under $S/. Keep
this exclusiveness.
 1.28  02-Sep-2015  uebayasi In `-S' mode, generate *.c files under conf/ subdirectory. Register generated
.c files to the `files' list internally.
 1.27  20-Aug-2015  christos move driver attach declarations to ioconf.h
 1.26  22-Jan-2015  christos appease gcc-4.5.4
 1.25  04-Nov-2014  joerg To make -Wconversion happy, cast return value of tolower/toupper to
char.
 1.24  30-Oct-2014  christos remove overflow test that triggered for negative values; we only care
about the hash here.
 1.23  30-Oct-2014  christos print more info about the overflow
 1.22  29-Oct-2014  christos - add RCSID's
- fix -Wconversion (except scanner)
 1.21  12-Mar-2012  dholland branches: 1.21.10;
Give option definitions their own data structure instead of using nvlists.
(and using messy hacks to make up for nvlists not holding quite the right
things)
 1.20  12-Mar-2012  dholland Introduce type-safe wrappers around the hash tables. Use them for a
selected set of tables affected by the next nvlist cleanup in the
works.
 1.19  11-Mar-2012  dholland Move locator lists to their own data structure. This can use more tidying;
it is not clear to me at the moment what the "string" and "num" values
pushed around in locator lists are supposed to actually mean.
 1.18  22-Mar-2010  pooka branches: 1.18.6;
Some drivers want to include ioconf.h, so generate it if doing
"ioconf" config.
 1.17  03-Feb-2010  pooka Introduce experimental support for ioconf-only configuration files.
This is done by giving the "ioconf" keyword in the config file.
As a result, config produces only ioconf.c and locators.h. Currently,
only "monolithic" configurations with the device path starting from
root are supported. Eventually, the goal is to support a local
root in the input file from any point along the device tree using
files.* in our kernel tree. This will make autogenerating the
config glue for device modules possible instead of having to write
it by hand like is currently required (yes, it sounds simple to
implement, but ...).

reviewed by cube.
(the next part will demand major discussions with you, so prepare ;)
 1.16  13-May-2009  cube Dependency on config_time.src was removed today from Makefile.kern.inc, so
starting from that date it's not necessary to create it. (Of course that
won't happen until config version is bumped for some other reason.)
 1.15  11-Apr-2009  lukem Fix WARNS=4 issues (-Wcast-qual -Wsign-compare -Wshadow)
 1.14  28-Dec-2008  christos branches: 1.14.2;
rename nv_int -> nv_num and make it long long, so that dev_t will fit when
we change it.
 1.13  09-Nov-2007  cube Don't pollute fsopttab with duplicate options for the sake of a test that
has probably been gone for a very long time. Produces identical output.
 1.12  12-May-2007  dsl branches: 1.12.4;
Enable the code that adds global constants to every kernel object file
that uses each configuration parameter.
This will stop kernel objects build with different options (that come from
config files) being linked together or loaded as a LKM.
Currently some options that have an effect on the kernel DDI/KI are passed
directly as parameters to cc.
An aim (for anyone adequately bored) would be to reduce the number of these
constants that appear in each .o file. .o files with the same constants
should be sharable between kernels (even between XEN and i386).
 1.11  10-May-2007  dsl Use '.equ' instead of '.set' when defining global constants.
On alpha '.set' has a non-standard purpose.
 1.10  13-Jan-2007  christos - rename {x,}error -> cfg{x,}error and {x,}warn -> cfg{x,}warn so that we
can use err(3) and warn(3) to display errors instead of using inconsistent
fprintf's.
- remove emalloc/estrdup etc. We have them in libutil.
 1.9  04-Oct-2006  dsl Instead of trying to check the return value of every fprintf() and fputs()
call - which makes the code completely impossibly to follow, call fflush()
and ferror() just prior to calling fclose().
This has the advantage of actually detecting the any write errors, since
the output is block bufferred and will typically not happen during fprintf()
but only during the fclose() - where it is difficult to report.
I also singlilarly refuse to add (void) casts to every printf call in the
system - since it almost never makes any sense to look at the return value
(unless you want to know how many bytes were actually writtem).
 1.8  04-Sep-2006  christos make this compile again.
 1.7  04-Sep-2006  dsl Add support for specifying a default value on a 'defparam' line.
If a default is specified then the option is always defined in the
corresponding .h file.
Particularly useful for parameters where the default action isn't the
same a defining the value zero, given that the current use of #if defined(opt)
is open to problems wehere the relevant .h file isn't actually included, so
requiring an option to always have a value makes sense.
Also included (but commented out) is code that adds a global symbol to
the object file to stop objects compiled with different values for the
same option being linked together - I'm not quite happy with it yet!
 1.6  26-Aug-2006  christos Now that this is part of tools, we don't need the extra build glue.
 1.5  25-May-2006  cube Introduce two new statements:

obsolete defflag <option> [, <option> [, ...]]
obsolete defparam <option> [, <option> [, ...]]

The two statements actually do the same thing (there could be only one),
but it makes things less cryptic that way. The optional ": deps" part of
a 'defflag' or 'defparam' still has to be dropped when it gets obsoleted.

When the user has 'options OBSOLETE_OPTION' in his configuration file, it
is ignored (that is, opt_*.h files are generated as if it wasn't there),
and the user gets a warning about it.

Bump version to 20060525.

When someone first uses that syntax in the tree, a "version 20060525"
statement should be added before its occurrence, preferably at the top
of sys/conf/files.

Suggested by Matt Thomas a few months ago.
 1.4  19-Mar-2006  cube branches: 1.4.2;
Fix various resource leaks, all happenning on error situations (IOW,
shortly before exit(1)). CIDs 181, 182, 183, 184 and 185.
 1.3  25-Aug-2005  drochner in locators.h, also emit definitions about the number of locators per
interface attribute
 1.2  28-Jun-2005  drochner don't put the xxxcf_locnames[] into the global namespace
 1.1  05-Jun-2005  thorpej config and genassym are not sysadmin tools, they are development tools.
As such, they don't belong in /usr/sbin, but rather /usr/bin. Move them
there.
 1.4.2.1  19-Jun-2006  chap Sync with head.
 1.12.4.1  09-Jan-2008  matt sync with HEAD
 1.14.2.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.18.6.1  17-Apr-2012  yamt sync with head
 1.21.10.1  06-Mar-2015  snj Pull up following revision(s) (requested by mrg in ticket #572):
usr.bin/config/Makefile: up to 1.10
usr.bin/config/TODO: up to 1.14
usr.bin/config/config.1: up to 1.17
usr.bin/config/config.5: up to 1.25
usr.bin/config/defs.h: up to 1.64
usr.bin/config/files.c: up to 1.18
usr.bin/config/gram.y: up to 1.46
usr.bin/config/hash.c: up to 1.11
usr.bin/config/lint.c: up to 1.15
usr.bin/config/main.c: up to 1.74
usr.bin/config/mkdevsw.c: up to 1.12
usr.bin/config/mkheaders.c: up to 1.26
usr.bin/config/mkioconf.c: up to 1.28
usr.bin/config/mkmakefile.c: up to 1.37
usr.bin/config/mkswap.c: up to 1.8
usr.bin/config/pack.c: up to 1.9
usr.bin/config/scan.l: up to 1.22
usr.bin/config/sem.c: up to 1.71
usr.bin/config/sem.h: up to 1.19
usr.bin/config/util.c: up to 1.19
sync config(1) with HEAD.

RSS XML Feed