diff options
author | bde <bde@FreeBSD.org> | 1998-07-12 08:10:33 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-12 08:10:33 +0000 |
commit | 5d983285b3e981a79fb1323695dd3fd491ce7484 (patch) | |
tree | a9f6c0b460bf198865ef57d3380a8cfd06af3355 /usr.sbin/config/mkmakefile.c | |
parent | 82ecca82af17fd6c172a75947a0c6cfbb255cdf6 (diff) | |
download | FreeBSD-src-5d983285b3e981a79fb1323695dd3fd491ce7484.zip FreeBSD-src-5d983285b3e981a79fb1323695dd3fd491ce7484.tar.gz |
Convert the maxusers directive to a normal MAXUSERS option (normally
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.
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 83ef421..081b469 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: mkmakefile.c,v 1.30 1998/06/09 14:02:07 dfr Exp $"; + "$Id: mkmakefile.c,v 1.31 1998/06/24 06:16:32 jkh Exp $"; #endif /* not lint */ /* @@ -136,24 +136,6 @@ new_fent() return (fp); } -static struct users { - int u_default; - int u_min; - int u_max; -} users[] = { - { 8, 2, 512 }, /* MACHINE_VAX */ - { 8, 2, 512 }, /* MACHINE_TAHOE */ - { 8, 2, 512 }, /* MACHINE_HP300 */ - { 8, 2, 512 }, /* MACHINE_I386 */ - { 8, 2, 512 }, /* MACHINE_MIPS */ - { 8, 2, 512 }, /* MACHINE_PMAX */ - { 8, 2, 512 }, /* MACHINE_LUNA68K */ - { 8, 2, 512 }, /* MACHINE_NEWS3400 */ - { 8, 2, 512 }, /* MACHINE_PC98 */ - { 8, 2, 512 }, /* MACHINE_ALPHA */ -}; -#define NUSERS (sizeof (users) / sizeof (users[0])) - /* * Build the makefile from the skeleton */ @@ -163,7 +145,6 @@ makefile() FILE *ifp, *ofp; char line[BUFSIZ]; struct opt *op; - struct users *up; int warn_make_clean = 0; int versreq; @@ -185,13 +166,6 @@ makefile() printf("cpu type must be specified\n"); exit(1); } -#if 0 - /* XXX: moved to cputype.h */ - { struct cputype *cp; - for (cp = cputype; cp; cp = cp->cpu_next) - fprintf(ofp, " -D%s", cp->cpu_name); - } -#endif for (op = opt; op; op = op->op_next) { if (!op->op_ownfile) { warn_make_clean++; @@ -204,20 +178,6 @@ makefile() } } fprintf(ofp, "\n"); - if ((unsigned)machine > NUSERS) { - printf("maxusers config info isn't present, using vax\n"); - up = &users[MACHINE_VAX-1]; - } else - up = &users[machine-1]; - if (maxusers == 0) { - printf("maxusers not specified; %d assumed\n", up->u_default); - maxusers = up->u_default; - } else if (maxusers < up->u_min) { - printf("minimum of %d maxusers assumed\n", up->u_min); - maxusers = up->u_min; - } else if (maxusers > up->u_max) - printf("warning: maxusers > %d (%d)\n", up->u_max, maxusers); - fprintf(ofp, "PARAM=-DMAXUSERS=%d\n", maxusers); if (loadaddress != -1) { fprintf(ofp, "LOAD_ADDRESS=%X\n", loadaddress); } |