summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/main.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Put on my viking helmet from the closet, and get out the war axe andpeter1999-05-091-26/+1
| | | | "retire" some more stuff.
* config(8) lobotomy, please see commit msg in sys.phk1999-05-091-4/+24
| | | | (I have no idea why cvs didn't take these changes before.)
* More cleanups, tweaks and features.peter1999-04-241-2/+2
| | | | | | | | | | - make this work: options FOO123=456 *without quotes* - grumble (but accept) vector xxxintr, and tty/net/bio/cam flags. - complain if a device is specified twice (eg: 2 x psm0) - don't require quotes around: port IO_COM2 - recognize negative numbers. (ie: options CAM_DEBUG_UNIT=-1) - GC some more unused stuff (we don't have composite disks from config(8)). - various other nits (snprintf paranoia etc)
* Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially thepeter1999-04-181-8/+7
| | | | | same and were merged into a single newbus_ioconf.c. CG'd some more unused code.
* Get out the blow torch and hack away all the unused stuff. Note thatpeter1999-04-171-31/+8
| | | | | | I zapped the MACHINE_MIPS stuff, it isn't likely to be useful apart from recognition of the machine name. It would be reasonable to expect new ports would look something like the alpha/i386 from a config perspective.
* Back out default debug kernel. The flags revert to historical behaviour.grog1999-04-111-18/+4
| | | | | | | | | | | | | | | Requested-by: ache bde dg Modify targets for debug kernels: when -g was specified, make will now build a debug kernel called kernel.debug, and create a stripped version called kernel at the same time. The two targets install and install.debug are otherwise unchanged. Requested-by: dillon Update man page accordingly.
* add -s to usageache1999-04-101-2/+2
| | | | | PR: 11056 Submitted by: Nickolay N. Dudorov <nnd@mail.nsk.ru>
* 1. Modify config to issue different code for debugging.grog1999-04-071-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2. Config complains if you use -g: Debugging is enabled by default, there is no ned to specify the -g option 3. Config warns you if you don't use -s: Building kernel with full debugging symbols. Do "config -s BSD" for historic partial symbolic support. To install the debugging kernel, do make install.debug (BSD was the name of the config file I used; I print out the same name). 4. Modify Makefile.i386, Makefile.alpha, Makefile.pc98 and config to work if a kernel name other than 'kernel' is specified. This is not absolutely necessary, but useful, and it was relatively easy. I now have a kernel called /crapshit :-) 5. Modify Makefile.i386, Makefile.alpha, Makefile.pc98 "clean" target to remove both the debug and normal kernel. 6. Modify all to install the stripped kernel by default and the debug kernel if you enter "make install.debug". 7. Update version number of Makefiles and config.
* Eliminate compiler warning when compiling "config.c" in a kernel.archie1998-12-101-2/+2
|
* Add (mostly stub) alpha support. Incidentally, it doesn't build on stabledfr1998-06-091-1/+8
| | | | unless I manually construct y.tab.h. Is this normal?
* Support PC-98 machine.kato1998-05-021-1/+2
|
* Don't generate code with syntax errors (hard newlines in string constantsbde1998-04-231-5/+5
| | | | in config.c).
* Add message when using obsolete command line option.eivind1998-03-161-1/+3
| | | | Suggested by: joerg
* Re-introduce '-n' - now a no-op for backwards compatibility only.eivind1998-02-191-2/+5
| | | | Requested by: David Quattlebaum <sasdrq@unx.sas.com>
* Make '-n' the default, and introduce a new flag '-r' to get oldeivind1998-02-181-13/+9
| | | | | behaviour. Also indicate which option(s) are unknown if there are any old-style options.
* Fix incorrect format string detected by "-Wformat".jdp1997-11-181-2/+2
|
* Use err(3), add usage(). -Wall clean.charnier1997-09-151-33/+34
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
* Sweep through the tree fixing mmap() usage:alex1997-01-161-4/+4
| | | | | | | | | | | | - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde
* Tidy up the generated config.c file. Use #include "opt_config.h", commentpeter1996-12-261-2/+4
| | | | | out text after #endif line, add missing \n at end of file, only install new config.c if it's different to the last one which preserves the timestamp.
* Bring back the `config file in the kernel' feature from the 1.x days. Thisjkh1996-06-081-0/+38
| | | | | | | is conditionalized by the INCLUDE_CONFIG_FILE option in your kernel config file and is not turned on by default. Submitted-By: Bill Pechter <pechter@shell.monmouth.com>
* Backout yacc changes.phk1996-06-021-1/+1
|
* yacc rule changes.phk1996-05-301-1/+1
|
* Make a little more effort to avoid touching certain generated files ifpeter1996-01-121-0/+65
| | | | they were not changed. This makes 'make depend' more useful.
* Implement support for conf/options and i386/conf/options.i386peter1995-12-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | Note that this code is dormant unless the options files exist. Also, parsing of quoted options in the config files is improved. What this allows, is all the options in LINT to be specified to be configured as #defines in a file rather than on the CC command line at kernel build time. This means that 'make depend' will catch dependencies on actual *options*, meaning that you can run 'config' and 'make depend' in complete safety WITHOUT removing the compile directory each time. Unfortunately, this requires a pass over the source to get the individual files to #include the new .h files that would be generated by config. This has a small compile time penalty (appears up to about 2% slower) from a "fresh" build. Of course, you should not be needing to do complete rebuilds very often once this was completed, so it would be an overall win for most people. Since this code is dormant and we've got a lot of other things happening on the kernel tree at the moment (prototypes, devfs, static declarations etc) I am not planning on doing any changes to activate this feature just yet.
* If CONFIG_NO_CLOBBER_EVER is defined (e.g., in /etc/make.conf), don't makewollman1995-11-281-0/+2
| | | | | it possible for config to ever blow away a work directory. Default behavior remains broken.
* Change the perennially annoying reminder to "make depend" (which may orjkh1995-05-031-1/+1
| | | | | | | | may not be desired if you're just going to blow the kernel away again later) and substitute one that tells the user where the new kernel build directory actually IS, which can at least be argued to be useful information in all cases. Reviewed by: davidg
* Make good on my promise to finally clean up the config clobbering.jkh1995-02-221-10/+18
| | | | | | | If you invoke config with the `-n' flag or have NO_CONFIG_CLOBBER in your environment, config will behave the same way it used to. This is now _documented_ as well. Rip out all the CONFIG_DONT_CLOBBER cruft; some of it wasn't even correct anyway.
* Add new keywords to config. The options availible in file.i386 are now:gibbs1994-11-171-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /* * filename [ standard | optional ] [ config-dependent ] * [ dev* | profiling-routine ] [ device-driver] [ no-obj ] * [ compile-with "compile rule" [no-implicit-rule] ] * [ dependancy "dependancy-list"] */ I added no-obj - This entry does not create anything linkable to the kernel. dependancy - Add additional dependancy rules to a target. no-implicit-rule - Don't assume .c -> .o type rules. Config is really dumb in this area and assumes that everything is a .c file irregarless of extention. This was the best choice really since there may even be .c file that you don't want to follow the standard rules. This was all done so that the building to the aic7770 assembler and using the aic7770 assembler in the building of the aic7770 driver could be config dependant. I can now have an entry like this for the driver: aic7770 optional ahc device-driver \ compile-with "${CC} $> -o $@" \ dependancy "$S/gnu/misc/aic7770/aic7770.c" \ no-obj no-implicit-rule aic7770_seq.h optional ahc device-driver \ compile-with "${.CURDIR}/aic7770 -o $@ $S/gnu/misc/aic7770/aic7770.seq"\ dependancy "$S/gnu/misc/aic7770/aic7770.seq aic7770" \ no-obj no-implicit-rule i386/isa/aic7770.c optional ahc device-driver \ dependancy "aic7770_seq.h" I also added '\' escaping to newlines so that this doesn't look as gross as it could have. Reviewed by: jkh
* Undo the damage done to my previous changes. Whoever added thejkh1994-09-081-2/+2
| | | | | | | | | | | | | | | | | | | conditional did it backwards, thus flipping the behavior back off again by default (and only re-enableable through a very counter-intuitive option setting!). I'm glad I caught this and would merely like to state again for the record that if you're going to go and modify my changes then you should at least: 1. Do it correctly, since to do otherwise is kind of a slap in the face. 2. TELL me. This is not me just being compulsive, this is simple courtesy. I'm speaking just of my own preferences here, not necessarily trying to impose my standards on the group at large (e.g. some other folks might not even care). Submitted by: jkh
* Revert back to old config behavior if compiled with -DCONFIG_DONT_CLOBBER.wollman1994-09-061-0/+6
|
* Eradicate my #1 (ok, maybe #2) peeve by making config now blow awayjkh1994-09-031-1/+19
| | | | | | | and recreate any previous ../../compile/<blah> directory before laying down new files. The depends just aren't smart enough to save us from the grief that config's old behavior has always caused. Submitted by: jkh
* Upgrade config to be compatible with our i386 port, pull in 95% of thergrimes1994-05-261-0/+1
| | | | | changes that have been made in FreeBSD 1.x, except for possibly the nfs diskless support this is a completed config.
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-261-0/+268
OpenPOWER on IntegriCloud