diff options
author | phk <phk@FreeBSD.org> | 1999-05-09 17:23:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-09 17:23:38 +0000 |
commit | a3eb84b2f90889aa591aabf7feeb509d26e2db27 (patch) | |
tree | d98f0930ea4fbd53fe37a0eb14ad8acfd6d86a6a /usr.sbin/config/main.c | |
parent | 905ee53485c821ba902da18f869a5f4812763087 (diff) | |
download | FreeBSD-src-a3eb84b2f90889aa591aabf7feeb509d26e2db27.zip FreeBSD-src-a3eb84b2f90889aa591aabf7feeb509d26e2db27.tar.gz |
config(8) lobotomy, please see commit msg in sys.
(I have no idea why cvs didn't take these changes before.)
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r-- | usr.sbin/config/main.c | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index 3f7e106..7088c08 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: main.c,v 1.31 1999/04/18 13:36:29 peter Exp $"; + "$Id: main.c,v 1.32 1999/04/24 18:59:19 peter Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -70,12 +70,33 @@ static int no_config_clobber = TRUE; int old_config_present; int debugging; int profiling; -u_int loadaddress; static void usage __P((void)); static void configfile __P((void)); /* + * note that a configuration should be made + */ +static void +mkconf(sysname) + char *sysname; +{ + register struct file_list *fl, **flp; + + fl = (struct file_list *) malloc(sizeof *fl); + memset(fl, 0, sizeof(*fl)); + fl->f_type = SYSTEMSPEC; + fl->f_needs = sysname; + fl->f_rootdev = 0; + fl->f_fn = 0; + fl->f_next = 0; + for (flp = confp; *flp; flp = &(*flp)->f_next) + ; + *flp = fl; + confp = flp; +} + +/* * Config builds a set of files for building a UNIX * system given a description of the desired system. */ @@ -143,10 +164,9 @@ main(argc, argv) else old_config_present = 1; - loadaddress = -1; dtab = NULL; confp = &conf_list; - compp = &comp_list; + mkconf("kernel"); if (yyparse()) exit(3); switch (machine) { |