fcdfdbba5c
* 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"
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# $NetBSD: MAKEDEV.conf,v 1.6 2003/12/21 17:37:26 lukem Exp $
|
|
|
|
all_md)
|
|
makedev std_atari st0 ttye0 ttye1 ttye2 ttye3 ttye4 ttye5 grf0 grf1
|
|
makedev grf2 grf3 grf4 grf5 mouse0 mouse1 rtc etvme leo0
|
|
makedev kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9
|
|
makedev view00 view01 view02 view03 view04 view05
|
|
makedev vnd5 vnd6 cd0 fd0 fd1 fd2 fd3
|
|
makedev ss0 ch0 uk0 uk1 wd0 wd1
|
|
makedev ttyA0 ttyA1 ttyB0 lpt0
|
|
makedev scsibus0 scsibus1 scsibus2 scsibus3
|
|
makedev audio
|
|
makedev isdns
|
|
makedev wscons
|
|
;;
|
|
|
|
floppy)
|
|
makedev std std_atari st0 ttye0 ttye1 ttye2 grf0 grf1 grf2 kbd tun0 tun1
|
|
makedev sd0 sd1 sd2 sd3 sd4 wd0 wd1 cd0 fd0 md0 md1 rtc
|
|
makedev ttyA0 ttyA1 ttyB0 opty
|
|
;;
|
|
|
|
std_atari)
|
|
mkdev nvram c 2 11 640 $g_kmem
|
|
mkdev reload c 2 20 640 $g_kmem
|
|
;;
|
|
|
|
ttyA*|ttyB*)
|
|
case $i in
|
|
ttyA*) name=tyA; unit=${i#ttyA}; major=7; minor=$(($unit * 16));;
|
|
ttyB*) name=tyB; unit=${i#ttyB}; major=35; minor=$unit;;
|
|
esac
|
|
mkdev t$name$unit c $major $(($minor + $dialin )) "" "" $u_uucp
|
|
mkdev d$name$unit c $major $(($minor + $dialout )) "" "" $u_uucp
|
|
;;
|
|
|
|
lpt*)
|
|
unit=${i#lpt}
|
|
mkdev lpt$unit c 29 $unit
|
|
;;
|