summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
Commit message (Collapse)AuthorAgeFilesLines
* - Avoid adding devices multiple times to the device list.ru2005-12-302-33/+66
| | | | | | - Avoid adding options multiple times to the option list. Based on a patch by: Matt Emmerton <matt@gsicomp.on.ca>
* Clean up most of the "XXX"-tagged items:ru2005-12-304-17/+39
| | | | | | | | | | | - The code that creates hints.c and env.c from the skeleton files moved into separate functions. - Sanity checks for missing "ident" and "cputype" directives moved into main(), alongside the existing check for "machine". PR: bin/90310 Submitted by: Matt Emmerton <matt@gsicomp.on.ca>
* config.5 was repocopied from share/man/man5/ to usr.sbin/config/.ru2005-12-091-1/+1
| | | | Repocopied by: peter
* Document "makeoption", "nocpu", and "nomakeoptions" directives.ru2005-12-031-2/+29
| | | | (Indeed this should be repo-copied to src/usr.sbin/config/.)
* Add "makeoption" as an alias to "makeoptions", for symmetry.ru2005-12-031-0/+1
|
* Style: use S_ISDIR() (submitted by bde@) and eq() where appropriate.ru2005-11-301-4/+3
|
* The DEFAULTS changes caused the user specified config file to be openedpeter2005-11-291-0/+5
| | | | | | | | | | | | | | | much later than before, and it is now after we do a mkdir ../compile/FILE. As a result, if you do 'config DOESNOTEXIST', it now creates the directory ../config/DOESNOTEXIST. It did not do that before. If DEFAULTS does not exist, it still fails early before any permanent changes. This shameless hack restores the old behavior of ensuring the config file actually exists before mkdiring its counterpart directory. Now I can rmdir ../compile/D and it will stay dead, after my fingers keep sabotaging me with 'config D<tab><enter>'. (Some of my kernel names started with D, which used to be 1-character unique and my fingers knew this very well...)
* 600004 is a better new version than 700000 based on some future commits toimp2005-11-281-1/+1
| | | | | | | | this file. With ru@'s approval, change it to this version. In this case we had to bump the version because the old parser would choke on | in the new 'or' syntax and consider that a device. Approved by: ru@
* - Allow duplicate "machine" directives with the same arguments.ru2005-11-271-2/+3
| | | | - Move existing "machine" directives to DEFAULTS.
* Make config(8) understand ORed dependecies in "files*" andru2005-11-272-13/+23
| | | | improve tracking of known devices. Bump config(8) version.
* Clean some code that became obfuscated over the years:ru2005-11-253-59/+19
| | | | | | | | | Don't keep duplicate files in the files list just to mark the device as "known" later. XXX: Since the device list isn't unique (there can be two "device foo" directives, as this the case with LINT+DEFAULTS), we have to traverse it all to mark all copies of the same device as "used", but this is not worse than it was.
* Minor comment tweak to prevent gcc from being upset about the substringrwatson2005-11-071-1/+1
| | | | /* appearing in a comment.
* Add some rationale about when to bump and not bump the config version.peter2005-11-071-3/+37
| | | | | | | | | | | | | Clarify that it is not like the shlib versions, and not like param.h's __FreeBSD_version/osreldate either. When config(8) was actively changing a while back, the interface between config and the build system (eg: /sys/conf/files.* and Makefile.*) was changing rapidly. configvers is a version number of that interface. User specified config files do not have a version number. The decision about whether a user supplied config file is syntactically valid or not belongs to the parser and sanity checks, not an arbitary number.
* since nocpu isn't used in the kernel config base, we don't need toimp2005-11-041-1/+1
| | | | | bump the version. Peter Wemm, John Baldwin and I hammered this out after the last time I needlessly incremented the version.
* Use the eq() macro for comparing strings (style), and remove a "break"ru2005-11-031-5/+4
| | | | statement to null the effect of several identical "cpu" directives.
* By a popular demand, add "nomakeoptions" as an alias to "nomakeoption".ru2005-11-031-0/+1
|
* Implement the "nocpu" directive.ru2005-11-033-1/+14
| | | | Requested by: rwatson
* Bump config(8) version for the DEFAULTS change.jhb2005-10-271-1/+1
|
* Optionally include a DEFAULTS config file if it is present in the currentjhb2005-10-273-3/+27
| | | | | | | | | | | | | directory before the specified config file. This is implemented by opening DEFAULTS as stdin if it exists, and if so resetting stdin to the actual config file when DEFAULTS is fully parsed via yywrap(). In short, this lets us create DEFAULTS kernel configs in /sys/<arch>/conf that can enable certain options or devices by default and allow users to disable them via 'nooptions' or 'nodevice' rather than having to create kludge NO_FOO options. Requested by: scottl Reviewed by: scottl
* Put rev. 1.65 into usage().obrien2005-08-111-1/+1
|
* Add an option to tell what version of config(8) this is.obrien2005-08-102-2/+10
|
* Ask that "make cleandepend" be run before "make depend", now thatru2005-04-221-1/+1
| | | | | | we don't do this automatically. Suggested by: bde
* Allow one to specify a second parameter to the machine line. Thisimp2005-04-014-3/+28
| | | | | | | | | | | allows us to specify the machine_arch as well as machine. If specified then a second link will be made, similar to machine, from $MACHINE_ARCH to $S/$MACHINE_ARCH/include. This is for ports where MACHINE != MACHINE_ARCH (pc98 today, others in the future?). Reviewed by: arch@, nyan@
* style(9) nitsimp2005-03-301-2/+3
|
* Unstaticize config. It was being optimized away.des2005-03-271-1/+1
| | | | MFC after: 3 days
* Bump the version number for the addition of devices / nodevices.des2005-02-101-1/+1
|
* Fully document (no)?(device|option)s?.des2005-02-101-17/+23
| | | | This page should probably be repocopied to src/usr.sbin/config/.
* "device" and "nodevice" lines can actually specify more than one devicedes2005-02-101-0/+2
| | | | | | (separated by commas), so add "devices" and "nodevices" as aliases. MFC after: 2 weeks
* Sort sections.ru2005-01-181-2/+2
|
* The ioconf.c is no longer generated.ru2004-12-161-4/+1
| | | | Submitted by: Craig Rodrigues
* Allow multiple devices to be specified on one device / nodevice line.des2004-10-241-7/+27
| | | | | | Also allow "device" / "nodevice" to be spelled "devices" / "nodevices". MFC after: 2 weeks
* If the file specified in an "include" line does not exist in the currentdes2004-10-241-1/+9
| | | | | | | | directory, and its name does not begin with a period or a forward slash, go look for it in ../../conf. Wished for by: scottl MFC after: 2 weeks
* We accept both "option" and "options" so also accept both "nooption"phk2004-10-121-0/+1
| | | | and "nooptions".
* Kill count device support from config. I've changed the last fewpeter2004-08-306-205/+12
| | | | | | | | | | | | | | | | | remaining consumers to have the count passed as an option. This is i4b, pc98/wdc, and coda. Bump configvers.h from 500013 to 600000. Remove heuristics that tried to parse "device ed5" as 5 units of the ed device. This broke things like the snd_emu10k1 device, which required quotes to make it parse right. The no-longer-needed quotes have been removed from NOTES, GENERIC etc. eg, I've removed the quotes from: device snd_maestro device "snd_maestro3" device snd_mss I believe everything will still compile and work after this.
* Per letter dated July 22, 1999, delete clause 3 from code directlyimp2004-08-077-28/+0
| | | | from Berkeley.
* Static device counts will not be supported in 6.x so place the generatedbrooks2004-06-301-0/+2
| | | | | | macros (N<driver>) under BURN_BRIDGES. Discussed with: peter, imp, scottl, ...
* Assorted markup, spelling, and grammar fixes.ru2004-06-161-2/+3
|
* Document the "files" directive.cognet2004-05-131-0/+4
| | | | Reminded by: jmg
* Fix a few glitches in my previous commit.cognet2004-05-112-3/+2
| | | | This makes config(8) WARNS?=6 compliant.
* Add a new "files" directive, which allows to include a files.foo file directlycognet2004-05-096-28/+62
| | | | | from a kernel config file. Bump config version to reflect this change.
* Whitespace nit.des2004-02-171-1/+1
|
* Fixed spurious syntax errors for including files that don't begin withbde2003-11-141-3/+4
| | | | | | | | | | a SEMICOLON token (a newline or semicolon, or one of these preceded by a comment and/or whitespace). The input stream was switched too early and the parser was expecting a SEMICOLON in the included file instead of after the filename in the include directive. Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Kept alive by: Adam C. Migus <adam@migus.org>
* Add a reference to config(5) in the SEE ALSO section.simon2003-08-061-0/+2
| | | | | Suggested by: dcs Approved by: ceri (mentor)
* Eliminate non-existent word.jkoshy2003-07-131-1/+1
| | | | Submitted by: jwd
* "towards" -> "toward". According to dictionary.com, the use of "towards"jkoshy2003-07-081-2/+2
| | | | | | | | | | is common in British English, while "toward" is the preferred form in American English. Use the American form for consistency. Correct the date on the manual page. Submitted by: Tom Rhodes <trhodes@freebsd.org>, underway@comcast.net (Gary W. Swearingen)
* Disallow multiple 'machine' directives in a kernel configurationjkoshy2003-07-061-0/+3
| | | | | | file. Reviewed by: ru, bde
* New section 5 manual page detailing our kernel configuration filejkoshy2003-07-061-0/+343
| | | | | | | format. Reviewed by: Ruslan Ermilov <ru@freebsd.org>, Jens Schweikhardt <schweikh@schweikhardt.net>
* Not particularly pretty hack to generate rules to make .ln filesmarkm2003-06-161-2/+10
| | | | | | | from .c files. Actually, this is overkill, as the .ln file targets are assumed from .? (any) files. This is not a problem in practice, merely a bit untidy, as the linting rules DTRT. See the sys/conf/* and sys/mk/* files for usage.
* Check the return values of opendir() and unlink() in cleanheaders().tmm2003-06-121-2/+4
| | | | If unlink() fails, just print a warning for now.
* Best we can do is WARNS=1 due to lex.obrien2003-06-111-0/+1
|
OpenPOWER on IntegriCloud