The NetBSD Project

CVS log for src/usr.bin/config/main.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / config

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.101 / (download) - annotate - [select for diffs], Thu Jan 18 04:41:37 2024 UTC (3 months ago) by thorpej
Branch: MAIN
CVS Tags: HEAD
Changes since 1.100: +34 -4 lines
Diff to previous 1.100 (colored)

With config(1) as it exists today, a kernel Makefile is able to implement
logic on kernel options so long as those options are not defflag'd or
defparam'd.  This works because such options are automatally added to the
IDENT var in the kernel Makefile as a preprocessor define, and the Makefile
can then do an operation like:

.if !empty(IDENT:M-DSOMECOOLCPUOPTION)
CFLAGS+= -mcpu=somecoolcpu
.endif

Unfortunately, this precludes making it possible to generate a compile-time
dependency on SOMECOOLCPUOPTION, or having SOMECOOLCPUOPTION imply another
kernel config option using the normal config(1) option dependency function.

Fix this by introducing a new option description keyword: mkflagvar.  This
keyword marks an already defflag'd option as wanting a kernel Makefile var
defined if that option is selected in the kernel config file.  So:

defflag opt_coolcpu.h SOMECOOLCPUOPTION ANOTHERCOOLCPUOPTION
mkflagvar SOMECOOLCPUOPTION ANOTHERCOOLCPUOPTION

will cause:

KERNEL_OPT_SOMECOOLCPUOPTION="1"
KERNEL_OPT_ANOTHERCOOLCPUOPTION="1"

...to be emitted into the kernel Makefile if those options are, in fact,
selected with "options ..." in the kernel config file, thus allowing for
a compile-time dependency on the option to be generated in addition to
Makefile logic, which now looks like:

.if !empty(KERNEL_OPT_SOMECOOLCPUOPTION)
CFLAGS+= -mcpu=somecoolcpu
.endif

Revision 1.91.6.1 / (download) - annotate - [select for diffs], Fri May 7 17:40:31 2021 UTC (2 years, 11 months ago) by martin
Branch: netbsd-8
Changes since 1.91: +74 -2 lines
Diff to previous 1.91 (colored) next main 1.92 (colored)

Pull up following revision(s) (requested by mrg in ticket #1678):

	bin/pax/options.c: revision 1.119
	usr.bin/config/scan.l: revision 1.32
	usr.bin/make/main.c: revision 1.274
	bin/pax/extern.h: revision 1.60
	usr.bin/config/defs.h: revision 1.106
	usr.bin/make/make.h: revision 1.105
	sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
	sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
	usr.bin/config/main.c: revision 1.100
	usr.sbin/installboot/Makefile:	revisions 1.53,1.54 (patch)
	usr.sbin/installboot/installboot.h: revision 1.41 (patch)
	usr.sbin/installboot/machines.c: revisisons 1.41,1.42 (patch)

Avoid depending on common symbols.

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Fri Apr 30 14:07:02 2021 UTC (2 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.98.2.1: +74 -2 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

Pull up following revision(s) (requested by mrg in ticket #1263):

	bin/pax/options.c: revision 1.119
	usr.bin/config/scan.l: revision 1.32
	usr.bin/make/main.c: revision 1.274
	bin/pax/extern.h: revision 1.60
	usr.bin/config/defs.h: revision 1.106
	usr.bin/make/make.h: revision 1.105
	sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
	sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
	usr.bin/config/main.c: revision 1.100

Avoid depending on common symbols.

Revision 1.97.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:15 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.97.4.1: +95 -18 lines
Diff to previous 1.97.4.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

Merge changes from current as of 20200406

Revision 1.100 / (download) - annotate - [select for diffs], Fri Apr 3 19:53:41 2020 UTC (4 years ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.99: +74 -2 lines
Diff to previous 1.99 (colored)

Avoid depending on common symbols.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Mon Mar 9 15:22:21 2020 UTC (4 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE
Changes since 1.98: +23 -18 lines
Diff to previous 1.98 (colored)

Pull up the following, requested by christos in ticket #776:

	usr.bin/config/TODO                             up to 1.32
	usr.bin/config/defs.h                           up to 1.105
	usr.bin/config/files.c                          up to 1.37
	usr.bin/config/gram.y                           up to 1.55
	usr.bin/config/main.c                           up to 1.99
	usr.bin/config/scan.l                           up to 1.30
	usr.bin/config/sem.c                            up to 1.84
	usr.bin/config/util.c                           up to 1.21

config(1): fix issue with incorrect handling of elifdef statements.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Mar 7 19:26:13 2020 UTC (4 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.98: +23 -18 lines
Diff to previous 1.98 (colored)

Keep track where more objects are declared so that we can print where things
have been redefined.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:18 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.97: +4 -4 lines
Diff to previous 1.97 (colored)

Sync with HEAD

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:10 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.97: +4 -4 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.98 / (download) - annotate - [select for diffs], Mon Dec 24 02:07:44 2018 UTC (5 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp
Branch point for: netbsd-9
Changes since 1.97: +4 -4 lines
Diff to previous 1.97 (colored)

yydebug is now defined only if YYDEBUG is

Revision 1.97 / (download) - annotate - [select for diffs], Tue Nov 28 15:31:33 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.96: +11 -7 lines
Diff to previous 1.96 (colored)

- make the level computation consistent
- keep going only if things changed.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Nov 27 00:25:46 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.95: +7 -4 lines
Diff to previous 1.95 (colored)

use a reference count to avoid deleting psrefs still in use.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Nov 24 23:42:36 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.94: +25 -24 lines
Diff to previous 1.94 (colored)

- Instead of checking the recursion level before we recurse, check in on
  function entry.
- Always decrement the level and reset levelparent on exit.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Nov 18 18:39:16 2017 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.93: +13 -4 lines
Diff to previous 1.93 (colored)

add more debugging, no functional change.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Nov 18 01:11:05 2017 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.92: +17 -4 lines
Diff to previous 1.92 (colored)

avoid creating infinite loops.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Nov 16 17:08:07 2017 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.91: +23 -5 lines
Diff to previous 1.91 (colored)

When deleting orphans detect parent<->child loops and break them.
"active" is not a boolean, use the right comparison.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Sep 5 00:40:28 2016 UTC (7 years, 7 months ago) by sevan
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.90: +2 -3 lines
Diff to previous 1.90 (colored)

Drop main() prototype.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Aug 7 10:37:24 2016 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.89: +17 -17 lines
Diff to previous 1.89 (colored)

Accept "-no" as a "no" that does not cause errors if the object deleted
does not exist.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Sep 4 06:01:40 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount
Changes since 1.88: +0 -7 lines
Diff to previous 1.88 (colored)

*.o files don't need special handling at all now.  Makefile.kern.inc knows
*.o input files don't need to get compiled, but need to get linked.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Sep 3 13:53:36 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.87: +0 -11 lines
Diff to previous 1.87 (colored)

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.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Sep 3 06:08:38 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

Fix build.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Sep 3 02:45:24 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.85: +32 -6 lines
Diff to previous 1.85 (colored)

In `-S' mode, create symlinks from outside of $S to build directory, for
files that are placed outside of $S, so that `Makefile.kern.inc' can see all
files under either $S or build directory.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Sep 2 05:09:25 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.84: +14 -4 lines
Diff to previous 1.84 (colored)

In `-S' mode, generate *.c files under conf/ subdirectory.  Register generated
.c files to the `files' list internally.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Sep 1 16:01:23 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.83: +7 -3 lines
Diff to previous 1.83 (colored)

Experimental ``suffix rules + subdirectories'' build support (-S).

Revision 1.83 / (download) - annotate - [select for diffs], Tue Sep 1 14:32:20 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.82: +57 -3 lines
Diff to previous 1.82 (colored)

Prepare to build subdirectories.  Not enabled yet.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Sep 1 01:50:14 2015 UTC (8 years, 7 months ago) by pgoyette
Branch: MAIN
Changes since 1.81: +40 -23 lines
Diff to previous 1.81 (colored)

Allow redefinition of options (with only a warning message).  Removal
of non-included options was already only a warning.

This also affects redefinition and removal of file-system and makeoption
entries.

Reviewed and OKd by uebayasi@

Revision 1.81 / (download) - annotate - [select for diffs], Mon Aug 31 02:58:25 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.80: +18 -0 lines
Diff to previous 1.80 (colored)

Restore the old behavior of "maxusers" to allow the value to be overriden.
Problem reported by John D. Baker.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Aug 30 01:33:20 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.79: +25 -0 lines
Diff to previous 1.79 (colored)

Define `makeoptions' values as parameters with "makeoptions_" prefix too.
C sources are encouraged to include relevant opt_*.h files rather than relying
on -DXXX passed via makefiles.

Revision 1.79 / (download) - annotate - [select for diffs], Sat Aug 29 13:34:21 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.78: +0 -7 lines
Diff to previous 1.78 (colored)

Revert MAXUSERS.  CVS is hard.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Aug 29 07:24:49 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.77: +7 -0 lines
Diff to previous 1.77 (colored)

Fix previous.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Aug 28 03:55:15 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.76: +8 -12 lines
Diff to previous 1.76 (colored)

Global paths looked up at output stage (mk*()) are relative to `srcdir'.
Ignore "prefix" by not calling sourcepath().

Revision 1.76 / (download) - annotate - [select for diffs], Sat Aug 8 15:52:41 2015 UTC (8 years, 8 months ago) by shm
Branch: MAIN
Changes since 1.75: +8 -5 lines
Diff to previous 1.75 (colored)

Add missed munmap(2) in extract_config

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jun 16 21:12:19 2015 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

remove stray newlines from errors/warnings

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Fri Mar 6 21:00:23 2015 UTC (9 years, 1 month ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.54: +66 -12 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

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.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jan 22 20:01:22 2015 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored)

appease gcc-4.5.4

Revision 1.73 / (download) - annotate - [select for diffs], Thu Nov 6 11:40:32 2014 UTC (9 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.72: +4 -3 lines
Diff to previous 1.72 (colored)

config(1): Rename internal flag to enable modular build

Revision 1.72 / (download) - annotate - [select for diffs], Tue Nov 4 23:00:35 2014 UTC (9 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

To make -Wconversion happy, cast return value of tolower/toupper to
char.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Oct 31 07:38:36 2014 UTC (9 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.70: +1 -8 lines
Diff to previous 1.70 (colored)

config(1), config(5): Introduce "select"

o Introduce a new selection directive "select" to select an attribute (as a
  module) and its dependencies.
o Support "no select" too.
o Stop abusing "options" to select an attribute.
o Bump config(1) version.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Oct 29 17:14:50 2014 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.69: +9 -5 lines
Diff to previous 1.69 (colored)

- add RCSID's
- fix -Wconversion (except scanner)

Revision 1.69 / (download) - annotate - [select for diffs], Sat Oct 18 06:36:40 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.68: +3 -0 lines
Diff to previous 1.68 (colored)

Keep track of attribute (module) dependency using hash2.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Oct 14 08:00:27 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.67: +0 -7 lines
Diff to previous 1.67 (colored)

Revert implicit attribute (module) declaration for options (flag/param).

Flag and param are to change contents of attributes (modules).  These don't
have code (*.[coS]).

Filesystem definition still defines an attribute (module) implicitly.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Oct 11 15:47:38 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.66: +7 -1 lines
Diff to previous 1.66 (colored)

More debug messages.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Oct 11 09:09:19 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.65: +15 -0 lines
Diff to previous 1.65 (colored)

After yyparse() is done, print not file but stage for debug.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Oct 11 03:17:40 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Enable debug for tools.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Oct 10 16:17:27 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.63: +0 -2 lines
Diff to previous 1.63 (colored)

Remove an unsed var.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Oct 10 15:35:08 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.62: +0 -6 lines
Diff to previous 1.62 (colored)

Revert a mistakenly added, superflous attribute match test that caused some
valid options to get lost.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Oct 10 10:46:05 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.61: +7 -0 lines
Diff to previous 1.61 (colored)

Select attributes for filesystem options too.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Oct 10 10:22:49 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.60: +18 -0 lines
Diff to previous 1.60 (colored)

If an option is selected, select the matching (lowercased) attribute.  Handle
dependencies too.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Oct 10 07:48:50 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.59: +7 -0 lines
Diff to previous 1.59 (colored)

Implicitly define attribute for options.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Oct 10 07:08:26 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.58: +7 -0 lines
Diff to previous 1.58 (colored)

Implicitly define attribute for filesystem.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Oct 9 19:20:56 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.57: +5 -1 lines
Diff to previous 1.57 (colored)

Steal -M to enable "modular" build.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Oct 9 16:08:36 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Always select the fallback allattr.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Oct 9 06:49:53 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.55: +2 -0 lines
Diff to previous 1.55 (colored)

Debug print where things are selected (by user).

Revision 1.55 / (download) - annotate - [select for diffs], Thu Oct 9 06:45:31 2014 UTC (9 years, 6 months ago) by uebayasi
Branch: MAIN
Changes since 1.54: +3 -1 lines
Diff to previous 1.54 (colored)

Add debug print function.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:57 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.49: +82 -6 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:57:59 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.51: +82 -5 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Rebase.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Aug 9 12:40:14 2014 UTC (9 years, 8 months ago) by bad
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.53: +3 -4 lines
Diff to previous 1.53 (colored)

Treat an undefined option as a warning instead of an error when undoing an
option.

Allows one to win with declarations like:
no options 	MSGBUFSIZE
options 	MSGBUFSIZE="128*1024"

Briefly discussed with cube@, lukem@ and martin@.

Revision 1.43.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:42:43 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.43.2.2: +82 -5 lines
Diff to previous 1.43.2.2 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.53 / (download) - annotate - [select for diffs], Mon May 5 21:04:09 2014 UTC (9 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Sort options in usage.

Revision 1.52 / (download) - annotate - [select for diffs], Mon May 5 19:08:13 2014 UTC (9 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.51: +81 -4 lines
Diff to previous 1.51 (colored)

Add two new options, -U and -D, that can be used to define "makeoptions"
on the config command line. While there, rename the undocumented (internal)
parser debug option from -D to -d.
Discussed on tech-toolchain.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Nov 1 21:39:13 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.50: +1 -1 lines
Diff to previous 1.50 (colored)

go back to using file:line: from uwe.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Nov 1 17:09:59 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

make config errors look more like other programs: <file>,<line>:
instead of <file>:<line>:

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:15 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.43.2.1: +15 -4 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored)

sync with head

Revision 1.49 / (download) - annotate - [select for diffs], Fri Aug 31 01:23:49 2012 UTC (11 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Don't support sysctl for the tools version of config. It is too complicated
to do so, and config -x is not used during the build.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 30 12:31:25 2012 UTC (11 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.47: +14 -3 lines
Diff to previous 1.47 (colored)

make config -x look at the booted kernel first.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:30 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.43: +139 -77 lines
Diff to previous 1.43 (colored)

sync with head

Revision 1.47 / (download) - annotate - [select for diffs], Mon Mar 12 02:58:55 2012 UTC (12 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.46: +131 -70 lines
Diff to previous 1.46 (colored)

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)

Revision 1.46 / (download) - annotate - [select for diffs], Mon Mar 12 00:20:30 2012 UTC (12 years, 1 month ago) by dholland
Branch: MAIN
Changes since 1.45: +21 -21 lines
Diff to previous 1.45 (colored)

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.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 11 08:21:53 2012 UTC (12 years, 1 month ago) by dholland
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Create a struct condexpr type to hold condition expressions, instead
of abusing struct nvlist to make trees.

(These are the a|b and a&b constructs.)

Revision 1.44 / (download) - annotate - [select for diffs], Sun Mar 11 07:32:41 2012 UTC (12 years, 1 month ago) by dholland
Branch: MAIN
Changes since 1.43: +5 -4 lines
Diff to previous 1.43 (colored)

Create a new type struct attrlist to manage lists of attributes,
instead of using struct nvlist.

(struct nvlist holds lists (or trees!) of semi-arbitrary stuff with no
structure and almost no type safety; it should go away.)

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jul 9 08:01:58 2011 UTC (12 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

When making the symlink for machine -> arch/foo/include
also make foo -> arch/foo/include.  This allows one to include <foo/bar.h>
include <machine/bar.h> which can be handy.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Mar 22 14:40:54 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

Some drivers want to include ioconf.h, so generate it if doing
"ioconf" config.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Mar 8 10:19:14 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.40: +8 -2 lines
Diff to previous 1.40 (colored)

Add a highly experimental pseudo-root feature to be used in conjuction
with the also-experimental ioconf keyword.  pseudo-root allows to
specify a root at any point in the device tree without having
attachments from the actual root.

For example, instead of having a config file like this:
mainbus0 at root
bus_a? at mainbus0
bus_b? at bus_a*
device7 at bus_b?

You can have one like this:
pseudo-root bus_b*
device7 at bus_b?

This will produce the relevant ioconf.c glue for device number 7
only instead of the whole 9 yards from root.  Perhaps needless to
say, this can be used to generate snippets of config glue for
modules and, let's not deny that my main motivation for doing this,
rump components.

This is part 2/3 of my modifications to config (the last part is
autogenerating source file lists and component Makefiles).

No strong objection from cube (after a little pressuring ;), but
like he said, the implementation will most likely need some more
tweaking and may not work correctly under all pseudo-root uses yet.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Mar 3 13:56:29 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.39: +2 -5 lines
Diff to previous 1.39 (colored)

reflect previous change in comment

Revision 1.39 / (download) - annotate - [select for diffs], Wed Mar 3 13:53:22 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.38: +2 -19 lines
Diff to previous 1.38 (colored)

Remove fs_foo.h support from deffs now that nothing uses it.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Feb 13 22:57:03 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.37: +3 -4 lines
Diff to previous 1.37 (colored)

Fix off-by-one (config -x works again) and improve editing artifacts
(actually the whole "config -x must be used alone" change was made
unnecessary along the way.  cest la vie).

Revision 1.37 / (download) - annotate - [select for diffs], Wed Feb 3 21:00:49 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.36: +29 -6 lines
Diff to previous 1.36 (colored)

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 ;)

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:47 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.33: +10 -18 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.36 / (download) - annotate - [select for diffs], Fri Mar 13 20:44:59 2009 UTC (15 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.35: +2 -3 lines
Diff to previous 1.35 (colored)

Now that condmkopttab isn't a hash table anymore, don't initialise it with
ht_new()...  So actually rename it to condmkoptions to avoid confusion.

Reported build failure on amd64 (strange that I wouldn't get it on i386) on
current-users by Kurt Schreiner.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 13 18:24:41 2009 UTC (15 years, 1 month ago) by cube
Branch: MAIN
Changes since 1.34: +9 -16 lines
Diff to previous 1.34 (colored)

Actually allow a full expression for the condition for "makeoptions" in
files.*

Patch from Yorick Hardy.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Feb 14 21:28:58 2009 UTC (15 years, 2 months ago) by cube
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Error out if one f the mkxxx() prints an error.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Dec 28 01:23:46 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

rename nv_int -> nv_num and make it long long, so that dev_t will fit when
we change it.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Oct 20 11:02:18 2008 UTC (15 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.31: +1 -5 lines
Diff to previous 1.31 (colored)

Don't complain about a missing 'file-system' directive. File system code
can be provided by modules.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Oct 16 05:41:13 2008 UTC (15 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.30: +2 -7 lines
Diff to previous 1.30 (colored)

Adjust previous; apb@ points out that _PATH_TMP is provided by compat_defs.h;
thus, this shouldn't need a paranoid fallback definition.
And, use _PATH_TMP also in the second place that was using a hardwired "/tmp".

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 16 05:35:01 2008 UTC (15 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.29: +12 -4 lines
Diff to previous 1.29 (colored)

Fix ridiculously small filename buffer for temporary file and resulting
truncation if $TMPDIR is set; also, fix an error path to not leave the
temporary file behind. From Gao Ya'nan in PR 39746.
While here, use _PATH_TMP instead of a hardwired "/tmp".

Revision 1.25.6.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:29:09 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.25.6.1: +4 -4 lines
Diff to previous 1.25.6.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Aug 30 02:57:42 2008 UTC (15 years, 7 months ago) by cube
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

In find_declared_option, use the correct hash for file-systems.  That way,
information about dependencies are actually processed.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jul 21 14:19:22 2008 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:10 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.25: +4 -14 lines
Diff to previous 1.25 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:21 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.25: +4 -14 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

sync with head.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 10 18:11:31 2008 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.26: +4 -21 lines
Diff to previous 1.26 (colored)

Disable use of pseudo-devices defined "defpseudo" with interface
attributes, but provide compatibility for older source trees (according
to the "version" in conf/files and other files.*.
reviewed by cube

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jun 10 12:35:32 2008 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.25: +11 -4 lines
Diff to previous 1.25 (colored)

Seperate pseudo-devs which don't use device_t et al. (the classical
ones, mostly network pseudo interfaces) and those which use autoconf
to attach instances dynamically, or to attach child devices.
Use a new keyword "defpseudodev" for the latter.
Issue a warning if interface attributes are used with "old" pseudodevs,
but let it work as before for now. This will be removed soon.
approved by cube

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Wed Jan 9 02:00:35 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.23: +3 -22 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

sync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 15 19:44:49 2007 UTC (16 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

convert __attribute__s to applicable cdefs.h macros

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 9 05:21:30 2007 UTC (16 years, 5 months ago) by cube
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.23: +2 -21 lines
Diff to previous 1.23 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 13 23:47:36 2007 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.22: +119 -185 lines
Diff to previous 1.22 (colored)

- 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.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jan 9 13:03:47 2007 UTC (17 years, 3 months ago) by cube
Branch: MAIN
Changes since 1.21: +15 -1 lines
Diff to previous 1.21 (colored)

Add new syntaxic sugar to provide a value in lint (i.e., config -L)
configurations for defparams.  It will be used _only_ by config -L.

This will greatly help automating tests with lint configurations,
hopefully.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jan 8 17:50:43 2007 UTC (17 years, 3 months ago) by cube
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

One %s is enough to print one string.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 8 16:08:08 2007 UTC (17 years, 3 months ago) by cube
Branch: MAIN
Changes since 1.19: +37 -3 lines
Diff to previous 1.19 (colored)

Introduce a new option to config(1):  -L.  What it does is takes a regular
configuration file (although it is meant to be used mostly with
std.${ARCH}), and prints out a configuration file that includes it and
select every single option and parameter, and define an instance for every
single possible attachment.  IOW, selects everything, into a would-be
"LINT" config.

The resulting config really isn't meant to be runnable, but should be
somewhat buildable on most archs.  It still needs adjustments because some
options are peculiar (e.g., ACPI_DSDT_FILE wants an existing file as its
value), so it's not yet possible to do "config -L; config; build" in an
automated way.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 6 18:54:32 2007 UTC (17 years, 3 months ago) by cube
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Make deffilesystem check all defined options, not just defopttab (which
ought to be empty nowadays).

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 29 23:00:44 2006 UTC (17 years, 5 months ago) by uwe
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.17: +3 -5 lines
Diff to previous 1.17 (colored)

Include <sys/cdefs.h> and use __used on config[] instead of the ifdef dance.
Prevents gcc4 from g/c'ing embedded config from VAX kernels.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 4 20:34:48 2006 UTC (17 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.16: +13 -7 lines
Diff to previous 1.16 (colored)

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).

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 30 15:03:56 2006 UTC (17 years, 7 months ago) by he
Branch: MAIN
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

Remove unused local variable.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Aug 30 10:12:25 2006 UTC (17 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.14: +45 -25 lines
Diff to previous 1.14 (colored)

Allow deffs to take dependencies like defflag and defopt

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 26 18:17:13 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

Now that this is part of tools, we don't need the extra build glue.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:17:06 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.10: +32 -10 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 25 22:28:38 2006 UTC (17 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.12: +29 -9 lines
Diff to previous 1.12 (colored)

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.

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 25 22:06:53 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

s/vax/__vax__/

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 24 23:16:50 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

deal with the vax gcc that does not understand __attribute__ used.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 14 23:47:34 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Branch point for: chap-midi
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

gcc-4.0 needs attribute used. Variables with attribute unused get removed.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 19 22:34:44 2006 UTC (18 years, 1 month ago) by cube
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Close file on error.  CID 176.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 10 13:39:47 2005 UTC (18 years, 4 months ago) by cube
Branch: MAIN
Changes since 1.7: +8 -2 lines
Diff to previous 1.7 (colored)

The loop detection code could not detect the negation of an instance that
made a device its own parent.  Add a test that checks that and stop looping
in that special case (after all, everything is already being handled by the
parent instance).

Reported by Jukka Salmi on current-user.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 13 17:24:31 2005 UTC (18 years, 5 months ago) by cube
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Invert the meaning of a comment to match reality.  Pointed out by uwe@.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 4 23:00:34 2005 UTC (18 years, 6 months ago) by cube
Branch: MAIN
Changes since 1.5: +5 -2 lines
Diff to previous 1.5 (colored)

Stop walking the tree when two conditions are met:  we've seen the device
already (one of its instances has been changed), and we have made no change
on any of the instances.

Previously, it stopped as soon as it detected the device had been seen.
While all the instances of the device at stake were eventually seen, the
same wasn't true for its children...

Fixes hpcmips's GENERIC.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 4 20:13:39 2005 UTC (18 years, 6 months ago) by cube
Branch: MAIN
Changes since 1.4: +30 -23 lines
Diff to previous 1.4 (colored)

- Make sure to try aliases of removed device instances when walking
  deaddevitab.
- Record the position in the config file of device instances so it is
  possible to tell if a device instance was declared before or after its
  parent's removal.

  E.g.:

     child* at parent?
     no parent

   will have the child instance ignored as an explicit orphan, while

     no parent
     child* at parent?

   will error out because now the child instance is a real orphan.

  That let the POSTPONED_ORPHAN regression test pass.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 2 21:22:56 2005 UTC (18 years, 6 months ago) by cube
Branch: MAIN
Changes since 1.3: +13 -4 lines
Diff to previous 1.3 (colored)

Don't return immediately when detecting that a devbase has already been
seen:  aliases might have to be activated, too.  Fixes GENERIC of alpha
and amiga.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 1 23:30:37 2005 UTC (18 years, 6 months ago) by cube
Branch: MAIN
Changes since 1.2: +138 -18 lines
Diff to previous 1.2 (colored)

o  Keep track of negated devices in deaddevitab
o  Rework do_kill_orphans() to use that information and mark explicitely
   orphaned devices (i.e., the ones whose missing ancestor has been
   negated)
o  Make a distinction between erroneous orphans and explicit orphans.
   Error out on the former, ignore the later (but print a warning when -v
   is used)

Yes, now config(1) will actually stop if you comment out a parent.  That
should help people still hoping adjustkernel is relevant these days :)

Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 30 22:36:20 2005 UTC (18 years, 6 months ago) by cube
Branch: MAIN
Changes since 1.1: +86 -54 lines
Diff to previous 1.1 (colored)

Rework the way orphan device instances are handled.  To achieve that, keep
track of instances attaching at root, and walk down the tree of active
device instances.  Then, all instances that are not marked active are
found as orphans.

Doing it that way allows us to simply ignore orphan devices, instead of
warning about them and still keep them in the configuration.  Now, orphaned
instances are considered as never having existed.

In the end, this allows 'no <device> at <attachment>' to be much more
efficient, as the user doesn't have to negate all descendents of the
instance s/he actually wants to negate.  Warnings are still emitted,
though.

While there, make official a side-effect of the previous lack of action
against orphaned instances:  config(1) used to warn about instances that
attach at a numbered device when no instance of that device with that
number existed, even though there was a starred instance of the device.

E.g. (provided by Alan Barrett):

    pciide* at pci? dev ? function ? flags 0x0000
    wdc0    at isa? port 0x1f0 irq 14 flags 0x00
    wdc1    at isa? port 0x170 irq 15 flags 0x00
    atabus* at ata?
    wd0     at atabus0 drive 0

With this commit, config(1) will no longer warn about 'wd0 at atabus0'.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 5 18:19:53 2005 UTC (18 years, 10 months ago) by thorpej
Branch: MAIN

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>