NetBSD/etc/etc.sparc/MAKEDEV.conf
lukem fcdfdbba5c Rework MAKEDEV:
*	Use "mknod -F netbsd -r" to create nodes, instead of
	"rm ; mknod; chmod; chown".
	This means permissions & ownership of existing nodes will
	not be changed.
	This is up to 30% faster when populating an empty /dev,
	and nearly 2x faster when re-running on an existing /dev.

    *	New options:
    	-f		force change of permission & ownership of existing
			devices
    	-m mknod	override name/path of mknod program
			(which defaults to $TOOL_MKNOD, then "mknod").
	-s		generate mtree(8) specfile instead of creating devices

    *	Remove /usr/etc from $PATH; not needed anymore.

    *	Provide functions to create devices & directories:
	    mkdev name [b|c] major minor [mode{=600} [gid{=0} [uid{=0}]]]
		create device node `name' with the appropriate permissions
	    lndev src target
		create a symlink from src to target
	    makedir dir mode
		create directory with appropriate mode

    *	UIDs and GIDs are hardcoded in at MAKEDEV generation time.
	(Unfortunately there's not a simple way of determining a GID
	a la "id -n user" for determining a UID).

This was tested by generating MAKEDEV for each MACHINE,MACHINE_ARCH
combination and comparing the results of "MAKEDEV all" from the
previous version to the new one.
(This testing actually highlighted mistakes in the previous configuration!)


Simplify distrib/common/Makefile.makedev to use "MAKEDEV -s"
2003-12-21 17:37:26 +00:00

58 lines
1.1 KiB
Plaintext

# $NetBSD: MAKEDEV.conf,v 1.7 2003/12/21 17:37:26 lukem Exp $
all_md)
makedev std_sparc ttya ttyb ttyc ttyd
makedev sd0 sd1 sd2 sd3 sd4 xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3
makedev cd0 st0 st1 fd0
makedev audio
makedev bpp
makedev bwtwo0 cgthree0 cgsix0 tcx0
makedev bwtwo1 cgthree1 cgsix1 tcx1
makedev cgtwo0 cgfour0 cgeight0
makedev scsibus0 scsibus1 scsibus2 scsibus3
makedev sysmon
makedev cfs0 apm apmctl tctrl0
makedev isdns
makedev pci0
makedev wscons
makedev kttcp
makedev nsmb
;;
std_sparc)
mkdev eeprom c 3 11 640 $g_kmem
mkdev openprom c 70 0 640 $g_kmem
mkdev fb c 22 0 666
mkdev mouse c 13 0 666
mkdev kbd c 29 0 666
makedev bpp
;;
floppy|ramdisk)
makedev std std_sparc ttya ttyb ttyc ttyd opty
makedev sd0 sd1 sd2 sd3 sd4 sd5 md0
makedev cd0 cd1 st0 st1 fd0
;;
tty[abcd])
unit=${i#???}
case $unit in
a) index=0;;
b) index=1;;
c) index=2;;
d) index=3;;
esac
mkdev tty$unit c 12 $(($index + $dialin )) "" "" $u_uucp
mkdev dty$unit c 12 $(($index + $dialout)) "" "" $u_uucp
;;
apm*)
lndev tctrl0 apm
mkdev apmctl c 71 8 644
;;
tctrl*)
unit=${i#tctrl}
mkdev tctrl$unit c 71 $unit 666
;;