CVS log for src/usr.bin/config/main.c
Up to [cvs.NetBSD.org] / src / usr.bin / config
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Jan 18 04:41:37 2024 UTC (10 months, 2 weeks ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +34 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri May 7 17:40:31 2021 UTC (3 years, 7 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +74 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 30 14:07:02 2021 UTC (3 years, 7 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE
Diff to: previous 1.98.2.1: preferred, colored; branchpoint 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.1: +74 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:15 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.97.4.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.4.1: +95 -18
lines
Merge changes from current as of 20200406
Revision 1.100: download - view: text, markup, annotated - select for diffs
Fri Apr 3 19:53:41 2020 UTC (4 years, 8 months ago) by joerg
Branches: 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
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +74 -2
lines
Avoid depending on common symbols.
Revision 1.98.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 9 15:22:21 2020 UTC (4 years, 8 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-1-RELEASE
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +23 -18
lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 7 19:26:13 2020 UTC (4 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +23 -18
lines
Keep track where more objects are declared so that we can print where things
have been redefined.
Revision 1.97.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:18 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +4 -4
lines
Sync with HEAD
Revision 1.97.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:10 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +4 -4
lines
Sync with HEAD, resolve a few conflicts
Revision 1.98: download - view: text, markup, annotated - select for diffs
Mon Dec 24 02:07:44 2018 UTC (5 years, 11 months ago) by christos
Branches: 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
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +4 -4
lines
yydebug is now defined only if YYDEBUG is
Revision 1.97: download - view: text, markup, annotated - select for diffs
Tue Nov 28 15:31:33 2017 UTC (7 years ago) by christos
Branches: 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
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +11 -7
lines
- make the level computation consistent
- keep going only if things changed.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Nov 27 00:25:46 2017 UTC (7 years ago) by christos
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +7 -4
lines
use a reference count to avoid deleting psrefs still in use.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Fri Nov 24 23:42:36 2017 UTC (7 years ago) by christos
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +25 -24
lines
- 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 - view: text, markup, annotated - select for diffs
Sat Nov 18 18:39:16 2017 UTC (7 years ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +13 -4
lines
add more debugging, no functional change.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Sat Nov 18 01:11:05 2017 UTC (7 years ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +17 -4
lines
avoid creating infinite loops.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Nov 16 17:08:07 2017 UTC (7 years ago) by christos
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +23 -5
lines
When deleting orphans detect parent<->child loops and break them.
"active" is not a boolean, use the right comparison.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Sep 5 00:40:28 2016 UTC (8 years, 3 months ago) by sevan
Branches: 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
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +2 -3
lines
Drop main() prototype.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Aug 7 10:37:24 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +17 -17
lines
Accept "-no" as a "no" that does not cause errors if the object deleted
does not exist.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Sep 4 06:01:40 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +0 -7
lines
*.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 - view: text, markup, annotated - select for diffs
Thu Sep 3 13:53:36 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +0 -11
lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 3 06:08:38 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -2
lines
Fix build.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Sep 3 02:45:24 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +32 -6
lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 2 05:09:25 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +14 -4
lines
In `-S' mode, generate *.c files under conf/ subdirectory. Register generated
.c files to the `files' list internally.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue Sep 1 16:01:23 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +7 -3
lines
Experimental ``suffix rules + subdirectories'' build support (-S).
Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Sep 1 14:32:20 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +57 -3
lines
Prepare to build subdirectories. Not enabled yet.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Sep 1 01:50:14 2015 UTC (9 years, 3 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +40 -23
lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 31 02:58:25 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +18 -0
lines
Restore the old behavior of "maxusers" to allow the value to be overriden.
Problem reported by John D. Baker.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Aug 30 01:33:20 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +25 -0
lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 29 13:34:21 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +0 -7
lines
Revert MAXUSERS. CVS is hard.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Aug 29 07:24:49 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +7 -0
lines
Fix previous.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Aug 28 03:55:15 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +8 -12
lines
Global paths looked up at output stage (mk*()) are relative to `srcdir'.
Ignore "prefix" by not calling sourcepath().
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Aug 8 15:52:41 2015 UTC (9 years, 4 months ago) by shm
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +8 -5
lines
Add missed munmap(2) in extract_config
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Jun 16 21:12:19 2015 UTC (9 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3
lines
remove stray newlines from errors/warnings
Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 6 21:00:23 2015 UTC (9 years, 9 months ago) by snj
Branches: 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
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +66 -12
lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 22 20:01:22 2015 UTC (9 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4
lines
appease gcc-4.5.4
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Nov 6 11:40:32 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -3
lines
config(1): Rename internal flag to enable modular build
Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Nov 4 23:00:35 2014 UTC (10 years, 1 month ago) by joerg
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3
lines
To make -Wconversion happy, cast return value of tolower/toupper to
char.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Oct 31 07:38:36 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +1 -8
lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 29 17:14:50 2014 UTC (10 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +9 -5
lines
- add RCSID's
- fix -Wconversion (except scanner)
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Oct 18 06:36:40 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -0
lines
Keep track of attribute (module) dependency using hash2.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Oct 14 08:00:27 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +0 -7
lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 11 15:47:38 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -1
lines
More debug messages.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Oct 11 09:09:19 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +15 -0
lines
After yyparse() is done, print not file but stage for debug.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Oct 11 03:17:40 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
Enable debug for tools.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Oct 10 16:17:27 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +0 -2
lines
Remove an unsed var.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Oct 10 15:35:08 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +0 -6
lines
Revert a mistakenly added, superflous attribute match test that caused some
valid options to get lost.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Oct 10 10:46:05 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +7 -0
lines
Select attributes for filesystem options too.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Oct 10 10:22:49 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +18 -0
lines
If an option is selected, select the matching (lowercased) attribute. Handle
dependencies too.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Oct 10 07:48:50 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +7 -0
lines
Implicitly define attribute for options.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Oct 10 07:08:26 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +7 -0
lines
Implicitly define attribute for filesystem.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Oct 9 19:20:56 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -1
lines
Steal -M to enable "modular" build.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Oct 9 16:08:36 2014 UTC (10 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2
lines
Always select the fallback allattr.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Oct 9 06:49:53 2014 UTC (10 years, 2 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -0
lines
Debug print where things are selected (by user).
Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Oct 9 06:45:31 2014 UTC (10 years, 2 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -1
lines
Add debug print function.
Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:57 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +82 -6
lines
Rebase to HEAD as of a few days ago.
Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:57:59 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +82 -5
lines
Rebase.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Aug 9 12:40:14 2014 UTC (10 years, 4 months ago) by bad
Branches: MAIN
CVS tags: tls-maxphys-base,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu May 22 11:42:43 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.43.2.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.2: +82 -5
lines
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 - view: text, markup, annotated - select for diffs
Mon May 5 21:04:09 2014 UTC (10 years, 7 months ago) by wiz
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-earlyentropy-base
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
Sort options in usage.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon May 5 19:08:13 2014 UTC (10 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +81 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 1 21:39:13 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -1
lines
go back to using file:line: from uwe.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Nov 1 17:09:59 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -2
lines
make config errors look more like other programs: <file>,<line>:
instead of <file>:<line>:
Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:15 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.1: +15 -4
lines
sync with head
Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Aug 31 01:23:49 2012 UTC (12 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 30 12:31:25 2012 UTC (12 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +14 -3
lines
make config -x look at the booted kernel first.
Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:30 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +139 -77
lines
sync with head
Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Mar 12 02:58:55 2012 UTC (12 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +131 -70
lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 12 00:20:30 2012 UTC (12 years, 8 months ago) by dholland
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +21 -21
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 11 08:21:53 2012 UTC (12 years, 8 months ago) by dholland
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 11 07:32:41 2012 UTC (12 years, 8 months ago) by dholland
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 9 08:01:58 2011 UTC (13 years, 5 months ago) by matt
Branches: 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
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -1
lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 22 14:40:54 2010 UTC (14 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -1
lines
Some drivers want to include ioconf.h, so generate it if doing
"ioconf" config.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Mar 8 10:19:14 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +8 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 3 13:56:29 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -5
lines
reflect previous change in comment
Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Mar 3 13:53:22 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -19
lines
Remove fs_foo.h support from deffs now that nothing uses it.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Feb 13 22:57:03 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 3 21:00:49 2010 UTC (14 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +29 -6
lines
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 - view: text, markup, annotated - select for diffs
Wed May 13 19:19:47 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +10 -18
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Mar 13 20:44:59 2009 UTC (15 years, 8 months ago) by cube
Branches: MAIN
CVS tags: matt-premerge-20091211,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 13 18:24:41 2009 UTC (15 years, 8 months ago) by cube
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +9 -16
lines
Actually allow a full expression for the condition for "makeoptions" in
files.*
Patch from Yorick Hardy.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Feb 14 21:28:58 2009 UTC (15 years, 9 months ago) by cube
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2
lines
Error out if one f the mkxxx() prints an error.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Dec 28 01:23:46 2008 UTC (15 years, 11 months ago) by christos
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2
lines
rename nv_int -> nv_num and make it long long, so that dev_t will fit when
we change it.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Oct 20 11:02:18 2008 UTC (16 years, 1 month ago) by ad
Branches: 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
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +1 -5
lines
Don't complain about a missing 'file-system' directive. File system code
can be provided by modules.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Oct 16 05:41:13 2008 UTC (16 years, 1 month ago) by dholland
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -7
lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 16 05:35:01 2008 UTC (16 years, 1 month ago) by dholland
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 18 04:29:09 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.25.6.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.6.1: +4 -4
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Aug 30 02:57:42 2008 UTC (16 years, 3 months ago) by cube
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2
lines
In find_declared_option, use the correct hash for file-systems. That way,
information about dependencies are actually processed.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jul 21 14:19:22 2008 UTC (16 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3
lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
Revision 1.25.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:32:10 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -14
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:21 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +4 -14
lines
sync with head.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Jun 10 18:11:31 2008 UTC (16 years, 6 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -21
lines
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 - view: text, markup, annotated - select for diffs
Tue Jun 10 12:35:32 2008 UTC (16 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +11 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 9 02:00:35 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -22
lines
sync with HEAD
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Dec 15 19:44:49 2007 UTC (16 years, 11 months ago) by perry
Branches: 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
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2
lines
convert __attribute__s to applicable cdefs.h macros
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Nov 9 05:21:30 2007 UTC (17 years, 1 month ago) by cube
Branches: MAIN
CVS tags: cube-autoconf-base,
cube-autoconf
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -21
lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 13 23:47:36 2007 UTC (17 years, 10 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
hpcarm-cleanup
Branch point for: matt-armv6
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +119 -185
lines
- 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 - view: text, markup, annotated - select for diffs
Tue Jan 9 13:03:47 2007 UTC (17 years, 11 months ago) by cube
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +15 -1
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 8 17:50:43 2007 UTC (17 years, 11 months ago) by cube
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2
lines
One %s is enough to print one string.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jan 8 16:08:08 2007 UTC (17 years, 11 months ago) by cube
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +37 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 6 18:54:32 2007 UTC (17 years, 11 months ago) by cube
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2
lines
Make deffilesystem check all defined options, not just defopttab (which
ought to be empty nowadays).
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Oct 29 23:00:44 2006 UTC (18 years, 1 month ago) by uwe
Branches: 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
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -5
lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 4 20:34:48 2006 UTC (18 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +13 -7
lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 30 15:03:56 2006 UTC (18 years, 3 months ago) by he
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -2
lines
Remove unused local variable.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Aug 30 10:12:25 2006 UTC (18 years, 3 months ago) by matt
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +45 -25
lines
Allow deffs to take dependencies like defflag and defopt
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Aug 26 18:17:13 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -2
lines
Now that this is part of tools, we don't need the extra build glue.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:17:06 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +32 -10
lines
Sync with head.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu May 25 22:28:38 2006 UTC (18 years, 6 months ago) by cube
Branches: MAIN
CVS tags: chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +29 -9
lines
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 - view: text, markup, annotated - select for diffs
Thu May 25 22:06:53 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2
lines
s/vax/__vax__/
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed May 24 23:16:50 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -2
lines
deal with the vax gcc that does not understand __attribute__ used.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun May 14 23:47:34 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
Branch point for: chap-midi
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
gcc-4.0 needs attribute used. Variables with attribute unused get removed.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Mar 19 22:34:44 2006 UTC (18 years, 8 months ago) by cube
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -3
lines
Close file on error. CID 176.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Dec 10 13:39:47 2005 UTC (19 years ago) by cube
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 13 17:24:31 2005 UTC (19 years ago) by cube
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
Invert the meaning of a comment to match reality. Pointed out by uwe@.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Oct 4 23:00:34 2005 UTC (19 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 4 20:13:39 2005 UTC (19 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +30 -23
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Oct 2 21:22:56 2005 UTC (19 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 1 23:30:37 2005 UTC (19 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +138 -18
lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 30 22:36:20 2005 UTC (19 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +86 -54
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 5 18:19:53 2005 UTC (19 years, 6 months ago) by thorpej
Branches: 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.
CVSweb <webmaster@jp.NetBSD.org>