BSD 4_3 release
[unix-history] / usr / man / man8 / config.8
CommitLineData
8c7df50e
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
95f51977 5.\" @(#)config.8 6.2 (Berkeley) 5/20/86
8c7df50e 6.\"
95f51977 7.TH CONFIG 8 "May 20, 1986"
8c7df50e
KM
8.UC 4
9.SH NAME
aab530e6 10config \- build system configuration files
8c7df50e
KM
11.SH SYNOPSIS
12.B /etc/config
aab530e6
KM
13[
14.B \-p
15]
9f2dd52f 16.I SYSTEM_NAME
8c7df50e
KM
17.SH DESCRIPTION
18.PP
19.I Config
20builds a set of system configuration files from a short file which describes
21the sort of system that is being configured. It also takes as input a file
22which tells
23.I config
24what files are needed to generate a system.
aab530e6
KM
25This can be augmented by a configuration specific set of files
26that give alternate files for a specific machine.
27(see the FILES section below)
28If the
29.B \-p
30option is supplied,
31.I config
32will configure a system for profiling; c.f.
9f2dd52f
MK
33.IR kgmon (8)
34and
aab530e6 35.IR gprof (1).
8c7df50e
KM
36.PP
37.I Config
38should be run from the
39.B conf
aab530e6 40subdirectory of the system source (usually /sys/conf).
9f2dd52f
MK
41Its argument is the name of a system configuration file
42containing device specifications, configuration options
43and other system parameters for one system configuration.
8c7df50e
KM
44.I Config
45assumes that there is already a directory
9f2dd52f 46.I "../SYSTEM_NAME"
8c7df50e
KM
47created and it places all its output files in there.
48The output of
49.I config
9f2dd52f 50consists of a number of files; for the VAX, they are:
8c7df50e 51.B ioconf.c
aab530e6 52contains a description
9f2dd52f 53of what I/O devices are attached to the system,;
8c7df50e 54.B ubglue.s
aab530e6
KM
55contains a set of interrupt service routines for devices
56attached to the UNIBUS;
9f2dd52f
MK
57.B ubvec.s
58contains offsets into a structure used for counting per-device interrupts;
59.B Makefile
aab530e6
KM
60is a file used by
61.IR make (1)
9f2dd52f 62in building the system; a set of header files contain definitions of
aab530e6 63the number of various devices that will be compiled into the system;
9f2dd52f 64and a set of swap configuration files contain definitions for
aab530e6
KM
65the disk areas to be used for swapping, the root file system,
66argument processing, and system dumps.
8c7df50e
KM
67.PP
68After running
aab530e6 69.IR config ,
9f2dd52f 70it is necessary to run ``make depend'' in the directory where the new makefile
8c7df50e
KM
71was created.
72.I Config
9f2dd52f 73prints a reminder of this when it completes.
8c7df50e 74.PP
9f2dd52f 75If any other error messages are produced by
8c7df50e 76.I config,
9f2dd52f
MK
77the problems in the configuration file should be corrected and
78.I config
79should be run again.
80Attempts to compile a system that had configuration errors
81are likely to meet with failure.
aab530e6 82.SH FILES
8c7df50e 83.nf
9f2dd52f 84/sys/conf/Makefile.vax generic makefile for the VAX
aab530e6
KM
85/sys/conf/files list of common files system is built from
86/sys/conf/files.vax list of VAX specific files
87/sys/conf/devices.vax name to major device mapping file for the VAX
88/sys/conf/files.ERNIE list of files specific to ERNIE system
8c7df50e 89.fi
8c7df50e 90.SH SEE ALSO
9f2dd52f 91``Building 4.3BSD UNIX System with Config''
aab530e6 92.br
8c7df50e 93The SYNOPSIS portion of each device in section 4.
8c7df50e
KM
94.SH BUGS
95The line numbers reported in error messages are usually off by one.