CVS log for src/usr.bin/config/gram.y
Up to [cvs.NetBSD.org] / src / usr.bin / config
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Jan 18 04:41:37 2024 UTC (11 months, 3 weeks ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +8 -2
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.56: download - view: text, markup, annotated - select for diffs
Sun Jul 26 22:40:52 2020 UTC (4 years, 5 months ago) by uwe
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-1-RELEASE,
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.55: preferred, colored
Changes since revision 1.55: +7 -3
lines
Add debug output for ENDDEFS.
This makes it more clear in the debug output where config switched
from definitions to selections.
Revision 1.54.14.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:15 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +3 -3
lines
Merge changes from current as of 20200406
Revision 1.54.16.1: download - view: text, markup, annotated - select for diffs
Mon Mar 9 15:22:21 2020 UTC (4 years, 10 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +3 -3
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.55: download - view: text, markup, annotated - select for diffs
Sat Mar 7 19:26:13 2020 UTC (4 years, 10 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3
lines
Keep track where more objects are declared so that we can print where things
have been redefined.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Aug 7 10:37:24 2016 UTC (8 years, 5 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
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,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
is-mlppp-base,
is-mlppp,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi,
netbsd-9
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +24 -18
lines
Accept "-no" as a "no" that does not cause errors if the object deleted
does not exist.
Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Wed May 11 11:21:18 2016 UTC (8 years, 8 months ago) by martin
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
Diff to: previous 1.39.2.1: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.1: +10 -4
lines
Pull up following revision(s) (requested by mlelstv in ticket #1164):
usr.bin/config/sem.c: revision 1.74
usr.bin/config/config.5: revision 1.35
usr.bin/config/gram.y: revision 1.53
Extend syntax of config phrase, a quoted string instead of a device name
is passed as root specification string. This can be used to specify a
wedge by name.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Apr 29 18:18:22 2016 UTC (8 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +10 -4
lines
Extend syntax of config phrase, a quoted string instead of a device name
is passed as root specification string. This can be used to specify a
wedge by name.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Sep 1 13:42:48 2015 UTC (9 years, 4 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +8 -1
lines
Introduce a new syntax, "buildprefix", to specify prefix of files under kernel
build subdirectory. This is not used now that everything is built at the
top of kernel build directory. It will become mandatory for source/object
files put out of kernel source tree to specify corresponding build subdirectory.
Only ``no dots'' relative path is accepted as "buildprefix".
Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Sep 1 11:22:59 2015 UTC (9 years, 4 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -2
lines
Merge struct objects into struct files. Keep per-suffix file lists.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Aug 31 02:58:25 2015 UTC (9 years, 4 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +1 -7
lines
Restore the old behavior of "maxusers" to allow the value to be overriden.
Problem reported by John D. Baker.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Aug 29 14:07:45 2015 UTC (9 years, 4 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +7 -1
lines
Convert MAXUSERS, take 2.
Define MAXUSERS in opt_param.h and include it from sys/param.h, for more
accurate dependency. Don't define -DMAXUSERS and add it to ${CPPFLAGS}.
config(5)'s "maxusers" syntax doesn't change.
(The version just before revert was OK, but I had something bad in my obj
dirs.)
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Aug 29 02:54:07 2015 UTC (9 years, 4 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -1
lines
Revert "Retire optional `rule' argument of `file' command". It is still used
in m68k ports.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Aug 28 09:04:02 2015 UTC (9 years, 4 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -10
lines
Retire optional `rule' argument of `file' command.
This has existed since Rev. 1.1 of Torek's config(8) [1], but probably has
never been used by anyone.
(I can not imagine how a `file' like look like if `rule' is specified.)
[1] http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/config.new/Attic/files.c?rev=1.1
Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 6 21:00:23 2015 UTC (9 years, 10 months ago) by snj
Branches: netbsd-7
CVS tags: 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.39: preferred, colored
Changes since revision 1.39: +262 -92
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.46: download - view: text, markup, annotated - select for diffs
Tue Nov 4 23:01:23 2014 UTC (10 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
makedev returns ~uint64_t, but val is int64_t. Cast for -Wconversion.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Oct 31 07:38:36 2014 UTC (10 years, 2 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +12 -2
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.44: download - view: text, markup, annotated - select for diffs
Wed Oct 29 17:14:50 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +39 -22
lines
- add RCSID's
- fix -Wconversion (except scanner)
Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Oct 10 11:09:50 2014 UTC (10 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -1
lines
Allow dependency on undefined attributes, so that attribute definitions can
be written out-of-order, like:
# b is not defined yet
define a: b
file a.c a
# b is defined here
define b
fine b.c
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Oct 10 06:13:30 2014 UTC (10 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2
lines
Split plain/interface/devclass attribute initializers.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Oct 9 09:39:24 2014 UTC (10 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +204 -61
lines
Sort definition/selection rules to clarify which is which.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Oct 9 07:05:01 2014 UTC (10 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +12 -12
lines
The word "configuration" is too ambiguous; use "selection" meaning that
user selects some of provided "definitions".
Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:57 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +2 -2
lines
Rebase to HEAD as of a few days ago.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:57:59 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +2 -1
lines
Rebase.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu May 29 07:47:45 2014 UTC (10 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -1
lines
implement "no ident".
Revision 1.24.6.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:42:43 2014 UTC (10 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.24.6.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.6.1: +1 -2
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.38: download - view: text, markup, annotated - select for diffs
Sun Aug 11 10:37:08 2013 UTC (11 years, 5 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -2
lines
ioconf/pseudo-root have been in here unchanged for 3+ years and their use
has spread from rump kernels into dozens of kernel modules. Let's pretend
we don't want to see config yell about them being experimental every time.
Revision 1.24.6.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:30 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +891 -393
lines
sync with head
Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Mar 12 02:58:55 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
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.36: preferred, colored
Changes since revision 1.36: +31 -19
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.36: download - view: text, markup, annotated - select for diffs
Sun Mar 11 21:16:08 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +107 -44
lines
Move locator lists to their own data structure. This can use more tidying;
it is not clear to me at the moment what the "string" and "num" values
pushed around in locator lists are supposed to actually mean.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Mar 11 19:27:26 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +33 -32
lines
More naming improvements.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Mar 11 08:21:53 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +67 -14
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.33: download - view: text, markup, annotated - select for diffs
Sun Mar 11 07:46:47 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +40 -40
lines
Rename a few more things; try to use the same terminology as config(5).
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Mar 11 07:32:41 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +46 -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.31: download - view: text, markup, annotated - select for diffs
Sun Mar 11 07:27:02 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +110 -18
lines
Strengthen the logic that wraps allocations going on the parser stack.
(This allows cleaning up when a syntax error occurs, because yacc just
dumps the parser stack on the floor.)
The new logic can handle arbitrary data types instead of being limited
to struct nvlist.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Mar 11 02:56:25 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +22 -7
lines
Write out the expression grammar for dependency constraints instead of
using precedence rules. Precedence rules (besides being a hack) often
lead to unexpected/unwanted behavior in corner cases.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Mar 11 02:43:33 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +257 -250
lines
Sort productions in grammar. No functional change.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Mar 11 02:21:04 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +38 -57
lines
Simplify some things. Rename some productions for clarity.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Mar 11 01:09:42 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -5
lines
A bit more of previous.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Mar 11 00:57:44 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +344 -245
lines
Reformat according to (my) basic standards for yacc grammars.
No functional change.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Mar 11 00:14:20 2012 UTC (12 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +150 -17
lines
Comments.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Apr 30 20:47:18 2010 UTC (14 years, 8 months ago) by pooka
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,
matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +27 -5
lines
For the simple cases, augment device-major with information on how
a driver expects /dev/node -> minor mappings to go and include that
information in devsw_conv.
(no, I didn't plow through all the MD majors files)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Mar 8 11:12:32 2010 UTC (14 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2
lines
print ioconf WARNING in caps too
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Mar 8 10:19:14 2010 UTC (14 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -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.21: download - view: text, markup, annotated - select for diffs
Wed Mar 3 13:53:22 2010 UTC (14 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -8
lines
Remove fs_foo.h support from deffs now that nothing uses it.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Feb 3 21:00:49 2010 UTC (14 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +19 -10
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.18.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:47 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +2 -2
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Mar 13 18:24:41 2009 UTC (15 years, 10 months ago) by cube
Branches: MAIN
CVS tags: matt-premerge-20091211,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2
lines
Actually allow a full expression for the condition for "makeoptions" in
files.*
Patch from Yorick Hardy.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Dec 28 01:23:46 2008 UTC (16 years ago) by christos
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +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.15.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:32:10 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +6 -3
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.15.6.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:21 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +6 -3
lines
sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jun 10 18:11:31 2008 UTC (16 years, 7 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
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.16: preferred, colored
Changes since revision 1.16: +2 -1
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.16: download - view: text, markup, annotated - select for diffs
Tue Jun 10 12:35:32 2008 UTC (16 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -3
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.13.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:00:35 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +13 -1
lines
sync with HEAD
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Nov 11 17:35:27 2007 UTC (17 years, 2 months ago) by cube
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,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-pf42,
wrstuden-revivesa
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -3
lines
Don't defattr machinearch if it's NULL. Pointed out by
Juergen Hannken-Illjes.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Nov 10 00:15:43 2007 UTC (17 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +12 -1
lines
Make the "machine" statement define attributes for `machine', `arch' and
all the `subarch' given as parameters. This is useful in combination with
ifdef...
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jan 13 23:47:36 2007 UTC (18 years 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.12: preferred, colored
Changes since revision 1.12: +3 -3
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.12: download - view: text, markup, annotated - select for diffs
Fri Jan 12 21:49:51 2007 UTC (18 years ago) by cube
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2
lines
Handle defopt lists properly, as ':=' syntax introduce an additional
element... For that, introduce nvcat(nv1, nv2).
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jan 9 13:03:47 2007 UTC (18 years ago) by cube
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +15 -4
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.10: download - view: text, markup, annotated - select for diffs
Mon Sep 4 06:45:14 2006 UTC (18 years, 4 months ago) by dsl
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.9: preferred, colored
Changes since revision 1.9: +6 -5
lines
Add support for specifying a default value on a 'defparam' line.
If a default is specified then the option is always defined in the
corresponding .h file.
Particularly useful for parameters where the default action isn't the
same a defining the value zero, given that the current use of #if defined(opt)
is open to problems wehere the relevant .h file isn't actually included, so
requiring an option to always have a value makes sense.
Also included (but commented out) is code that adds a global symbol to
the object file to stop objects compiled with different values for the
same option being linked together - I'm not quite happy with it yet!
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Aug 30 10:12:25 2006 UTC (18 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2
lines
Allow deffs to take dependencies like defflag and defopt
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Aug 26 18:17:13 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3
lines
Now that this is part of tools, we don't need the extra build glue.
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:17:06 2006 UTC (18 years, 7 months ago) by chap
Branches: chap-midi
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +8 -4
lines
Sync with head.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jun 4 13:07:24 2006 UTC (18 years, 7 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.6: preferred, colored
Changes since revision 1.6: +5 -3
lines
D'uh. Forgot the file name argument in the "obsolete" statements.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu May 25 22:28:38 2006 UTC (18 years, 7 months ago) by cube
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -4
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.5: download - view: text, markup, annotated - select for diffs
Sat Feb 11 20:15:53 2006 UTC (18 years, 11 months ago) by cube
Branches: MAIN
Branch point for: chap-midi
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1
lines
Add 'no config <name>'.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 12 01:17:43 2005 UTC (19 years, 3 months ago) by cube
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +15 -3
lines
Introduce versioning to config(1). This will allow us to provide a way to
error out in a bit more friendly way when the user is trying to use
config(1) on a too old or too recent source tree.
To achieve that, introduce the "version NUMBER" statement which can be use
about anywhere in the config files. Also, use two defines, CONFIG_VERSION
(which is the actual version of binary), and CONFIG_MINVERSION, which is
the minimum version the binary supports.
Allowing a range of versions serves several purposes: first it allows me
to introduce the versioning without requiring it to be used right away in
the kernel tree, which means it will be possible to introduce new features
of config(1) rather progressively in the future. E.g., using 'no pci' in
a config file could only require the new version in that config file, so
that the rest remains compatible.
In the end, an actual bump of the main config system (i.e., in conf/files)
will only be required when e.g., ioconf.c semantics change.
(Mostly-)silently accepted on tech-kern. Error messages turned into
correct and meaningful English thanks to Tracy and Perry.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Sep 30 22:51:46 2005 UTC (19 years, 3 months ago) by cube
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -2
lines
Introduce two new statements:
no device at <attachment>
<attachment> can take two forms: either numbered/wildcarded, in which
case only exactly matching instances will be removed, or plain (with
no number or wildcard), in which case all matching instances will be
removed.
When <attachment> is a plain interface attribute, all instances using
that attribute (either directly or through an explicit device) will be
removed.
E.g.:
auich* at pci? dev ? function ?
audio0 at audiobus?
audio1 at auich?
audio* at auich0
no device at auich0 -> removes audio*
no device at auich? -> removes audio1
no device at auich -> removes audio1 _and_ audio*
no device at audiobus? -> removes audio0
no device at audiobus -> removes audio0, audio1 and audio*
no <device>
As in the previous case, <device> can either be numbered/starred, in
which case all exactly matching instances are removed, or plain, in
which case all instances of the device are removed.
E.g.: (continuing previous example)
no audio* -> removes 'audio* at auich0'
no audio -> removes all audio instances
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 10 15:38:46 2005 UTC (19 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -13
lines
Move package/cinclude/include handling from the parser to the scanner,
where it belongs. This has the side effect of fixing PR toolchain/30903.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jun 5 18:19:53 2005 UTC (19 years, 7 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>