NetBSD/usr.sbin/config/Makefile
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00

24 lines
544 B
Makefile

# $NetBSD: Makefile,v 1.25 2002/09/06 13:18:43 gehenna Exp $
# from: @(#)Makefile 8.2 (Berkeley) 4/19/94
PROG= config
BINDIR= /usr/sbin
SRCS= files.c gram.y hash.c main.c mkdevsw.c mkheaders.c mkioconf.c \
mkmakefile.c mkswap.c pack.c scan.l sem.c util.c
YFLAGS=
CPPFLAGS+=-I${.CURDIR} -I.
CLEANFILES+=gram.h
MAN= config.8
# XXX should use "YHEADER", but make this work on 1.3 as well as 1.4+
gram.h: gram.c
gram.c: gram.y
${YACC.y} -d ${.ALLSRC}
mv -f y.tab.c gram.c
mv -f y.tab.h gram.h
.ifndef HOSTPROG
.include <bsd.prog.mk>
.endif