Date: Thu, 29 Apr 1999 20:05:32 -0700 (PDT) From: papowell@astart4.astart.com To: jkh@zippy.cdrom.com Cc: freebsd-small@freebsd.org Subject: picobsd and /dev/MAKEDEV problems Message-ID: <199904300305.UAA11181@astart4.astart.com>
next in thread | raw e-mail | index | archive | help
I have been adding some functionality to the various build scripts, when I discovered that the /dev/MAKEDEV script was not generating devices, but picobsd/build was not reporting an error. I discovered the following code (single example here) in /dev/MAKEDEV case $unit in [0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1]) for slicepartname in s0h s1 s2 s3 s4 do **************>>>>>>> sh MAKEDEV $name$unit$slicepartname **************>>>>>>> done ;; *) echo bad unit for disk in: $i ;; esac Clearly /dev/MAKEDEV wants to be run in the /dev directory. However, the build scripts assume that they can do: sh /dev/MAKEDEV The sh MAKEDEV failes as it does not find a MAKEDEV file in the current directory. Here are patches to the picobsd configuration files that fix this problem. *** picobsd/dial/mfs.tree/Makefile Thu Apr 29 19:56:47 1999 --- picobsd/dial/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 62,71 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV MAKEDEV; \ ! ./MAKEDEV std sysmouse tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0; \ ! ./MAKEDEV psm0; \ ! ./MAKEDEV wd0 wd1 acd0; \ ! rm MAKEDEV; ) clean: --- 62,69 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std sysmouse tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0; \ ! /dev/MAKEDEV psm0; \ ! /dev/MAKEDEV wd0 wd1 acd0 ) clean: *** picobsd/isp/mfs.tree/Makefile Thu Apr 29 19:58:22 1999 --- picobsd/isp/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 33,40 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV; \ ! ./MAKEDEV std wd0 wd1 acd0 tun2 vty10 fd0 pty0; \ ! ./MAKEDEV cuaa0 cuaa1 cuaa2 cuaa3 cuaa4; \ ! ./MAKEDEV cuaa5 cuaa6 cuaa7 cuaa8 cuaa9; \ ! rm MAKEDEV; ) --- 33,38 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std wd0 wd1 acd0 tun2 vty10 fd0 pty0; \ ! /dev/MAKEDEV cuaa0 cuaa1 cuaa2 cuaa3 cuaa4; \ ! /dev/MAKEDEV cuaa5 cuaa6 cuaa7 cuaa8 cuaa9) *** picobsd/net/mfs.tree/Makefile Thu Apr 29 19:58:47 1999 --- picobsd/net/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 33,38 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV; \ ! ./MAKEDEV std tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0 wd0 wd1 acd0 ; \ ! rm MAKEDEV; ) --- 33,36 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0 wd0 wd1 acd0) *** picobsd/router/mfs.tree/Makefile Thu Apr 29 20:00:17 1999 --- picobsd/router/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 33,38 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV; \ ! ./MAKEDEV std tun2 vty3 fd0 pty0 wd0 wd1 acd0 cuaa0 cuaa1 cuaa2; \ ! rm MAKEDEV; ) --- 33,36 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std tun2 vty3 fd0 pty0 wd0 wd1 acd0 cuaa0 cuaa1 cuaa2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904300305.UAA11181>