summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/mkmakefile.c
Commit message (Collapse)AuthorAgeFilesLines
* Delete special handling for 'device-driver' suffix, it's not used inpeter1999-07-031-7/+7
| | | | the kernel source now.
* Put on my viking helmet from the closet, and get out the war axe andpeter1999-05-091-68/+3
| | | | "retire" some more stuff.
* config(8) lobotomy, please see commit msg in sys.phk1999-05-091-29/+6
| | | | (I have no idea why cvs didn't take these changes before.)
* More cleanups, tweaks and features.peter1999-04-241-4/+4
| | | | | | | | | | - 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)
* Slightly reorder the all: to make sure it's before any alternate kernelpeter1999-04-191-6/+6
| | | | names for debugging etc. all: should now always be the first target.
* Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially thepeter1999-04-181-5/+3
| | | | | 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-34/+34
| | | | | | 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.
* Clean up the -g/DEBUG handling. This logic can go in the Makefilepeter1999-04-131-25/+3
| | | | so that config -g can work the same as: makeoptions DEBUG="-g"
* Back out default debug kernel. The flags revert to historical behaviour.grog1999-04-111-6/+10
| | | | | | | | | | | | | | | 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.
* 1. Modify config to issue different code for debugging.grog1999-04-071-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Bump config version. Also mention that even after rebuilding a newgibbs1998-09-151-1/+5
| | | | | config, you may need to resynchronize your config file with syntax or name changes documented in GENERIC or LINT.
* Reviewed by: Doug Rabsonnsouch1998-09-031-3/+43
| | | | | | Submitted by: nsouch 'local' token added to support new bus architecture .c files generated by .m files.
* Convert the maxusers directive to a normal MAXUSERS option (normallybde1998-07-121-41/+1
| | | | | | | | | | define MAXUSERS in opt_param.h as directed in /sys/conf/options; if it's not mentioned there, then define it in IDENT; never define it in PARAM). MAXUSERS probably should be a completely normal option. Don't define PARAM now that it is empty. Cleaned up similar conversion of cpu directives to XXX_CPU options.
* MF22: more explanatory message from config on version mismatch detection.jkh1998-06-241-2/+5
|
* Add (mostly stub) alpha support. Incidentally, it doesn't build on stabledfr1998-06-091-1/+2
| | | | unless I manually construct y.tab.h. Is this normal?
* Support PC-98 machine.kato1998-05-021-1/+2
|
* Style & message change.eivind1998-03-161-13/+10
| | | | Submitted by: bde
* Style police service brought to you by: bdeeivind1998-02-191-6/+5
|
* Make '-n' the default, and introduce a new flag '-r' to get oldeivind1998-02-181-4/+12
| | | | | behaviour. Also indicate which option(s) are unknown if there are any old-style options.
* All our options are new-style now - enable the warning if unrecognizedeivind1998-02-091-3/+1
| | | | (that is, old-style) options are found.
* Allow for a keyword in the "files" file named "mandatory". The firstjoerg1997-10-281-5/+18
| | | | | | | | candidate for this is "npx0", more are likely to follow. Check for pseudo-devices that are being configured, but don't appear in any "files" file. The ``pseudo-device bpf 2'' already hit me too often.
* Recognize a %VERSREQ=nnnnn string in the system Makefile. Both config(8)peter1997-10-221-2/+11
| | | | | | | | | and the kernel will have a 'config interface version number'. If an incompatable change is made to the kernel that requires a rebuild of config(8) (such as the cam devtab stuff), then the version number would be bumped in both places. If a user neglects to rebuild config, then they will get a nagging (but non-fatal) warning that they need to rebuild config.
* Use err(3), add usage(). -Wall clean.charnier1997-09-151-17/+37
|
* Part #2 of the config cleanup. More aggressive, replaced an NIHjoerg1996-12-141-0/+3
| | | | | | | | | | version of strdup() by a macro, killed many calls to strdup(), thus potentially wasting less malloc'ed space (their args were never be free()ed desptie despite of being malloc'ed). Probably still a huge memory leak at all... Also killed two totally useless variables. I've tested it as i could, but wouldn't be surprised if unexpected problems showed up. So watch out this space!
* Round #1 of cleaning up the config(8) mess. This is only the morejoerg1996-12-141-4/+4
| | | | | | | conservative part of the tidyup, like fixing potential buffer overflow conditions. It is believed to be safe to go into 2.2. Pointed out by: lozenko@cc.acnit.ac.ru (Evgeny A. Lozenko)
* Moved nonstandard compiler profiling options out of config. Just printbde1996-12-131-6/+4
| | | | | | | | the profiling level in config and decide what to do in makefiles. Makefile.i386: Align functions to 16-byte boundaries if profiling is enabled. This will allow a fourfold reduction in the size of the profiling buffers.
* 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-2/+3
| | | | they were not changed. This makes 'make depend' more useful.
* Changed the default/min/max number of users to 8/2/512 for all machinedg1995-12-291-8/+8
| | | | types. This is closer to the reality of reasonable values.
* Implemented non-statistical kernel profiling. This is based onbde1995-12-291-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looking at a high resolution clock for each of the following events: function call, function return, interrupt entry, interrupt exit, and interesting branches. The differences between the times of these events are added at appropriate places in a ordinary histogram (as if very fast statistical profiling sampled the pc at those places) so that ordinary gprof can be used to analyze the times. gmon.h: Histogram counters need to be 4 bytes for microsecond resolutions. They will need to be larger for the 586 clock. The comments were vax-centric and wrong even on vaxes. Does anyone disagree? gprof4.c: The standard gprof should support counters of all integral sizes and the size of the counter should be in the gmon header. This hack will do until then. (Use gprof4 -u to examine the results of non-statistical profiling.) config/*: Non-statistical profiling is configured with `config -pp'. `config -p' still gives ordinary profiling. kgmon/*: Non-statistical profiling is enabled with `kgmon -B'. `kgmon -b' still enables ordinary profiling (and distables non-statistical profiling) if non-statistical profiling is configured.
* Implement support for conf/options and i386/conf/options.i386peter1995-12-111-5/+25
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Added support for a %SFILES token to auto-generate a SFILES= file list indg1995-10-291-0/+27
| | | | | the same way that is done for CFILES. Files ending in .s or .S that match the option criteria will be included in this list.
* Don't pre-processor define 'ident'. This has subtle consequences for peopledg1995-10-231-1/+1
| | | | | who don't carefully consider their choice for the machine name. The same functionality can still be had with an "option", so nothing is lost.
* Killed TIMEZONE, DST, and HZ keywords. They have generated a config errordg1995-06-291-2/+1
| | | | | for more than a year now. They've been replaced with userland methods for changing (see adjkerntz).
* Remove trailing whitespace.rgrimes1995-05-301-5/+5
|
* Fix 3 printf's that had the wrong number of arguments.rgrimes1995-05-141-3/+3
| | | | Submitted by: gibbs
* Implement "clean" entries for device config entries.gibbs1995-03-011-20/+35
| | | | Submitted by: Pointed out by Bruce Evans <bde@zeta.org.au>
* Allow config to fully handle the aic7770 driver dependancies.gibbs1994-12-311-3/+67
|
* Add new keywords to config. The options availible in file.i386 are now:gibbs1994-11-171-10/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /* * 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
* Oops...forgot to list the changes....dg1994-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | /usr/src/usr.sbin.config: o -DSTATCLOCK gives kludges to support the rtc non-device as well as old kludges to support the clk non-device. /usr/src/usr.sbin/config.8: o Document the trivialness of the new vector.h. /usr/src/usr.sbin/mkglue.c: o Only print DEVICE_NAMES and NR_DEVICES in vector.h. These are only required to support vmstat. The vmstat interface will need to be improved for dynamic loading. /usr/src/usr.sbin/mkioconf.c: o Print device ids to be used as indexes into DEVICE_NAMES. o Print secondary interrupt handler entry points (xxxintr()) instead of primary ones (VdevU()). Primary ones are now XintrI() and XfastintrI() and are independent of the config so they are not handled here. o Minor cleanups. Submitted by: Bruce Evans
* Now that the timezone specification is no longer allowed, don't issue adg1994-08-091-2/+0
| | | | warning that it is missing.
* Upgrade config to be compatible with our i386 port, pull in 95% of thergrimes1994-05-261-5/+19
| | | | | 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/+623
OpenPOWER on IntegriCloud