From owner-freebsd-hackers Fri Feb 14 18:18:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA20775 for hackers-outgoing; Fri, 14 Feb 1997 18:18:51 -0800 (PST) Received: (from jmacd@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA20769 for hackers; Fri, 14 Feb 1997 18:18:49 -0800 (PST) Date: Fri, 14 Feb 1997 18:18:49 -0800 (PST) From: Joshua Peck Macdonald Message-Id: <199702150218.SAA20769@freefall.freebsd.org> To: hackers Subject: bsd.kmod.mk Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Here are some useful improvements on bsd.kmod.mk. The unload rule was broken, the load rule now unloads first, ignoring any errors, and the KERN variable is overridable. They were useful in doing kernel module development recently. Is anyone interested in having these commited? -josh *** mk/bsd.kmod.mk Mon Jan 13 22:33:19 1997 --- bsd.kmod.mk Fri Feb 14 18:16:02 1997 *************** *** 195,210 **** .if !target(load) ! load: ${PROG} ${MODLOAD} -o ${KMOD} -e${KMOD} ${PROG} .endif .if !target(unload) unload: ${PROG} ! ${MODUNLOAD} -n ${KMOD} .endif ! KERN= ${.CURDIR}/../../sys/kern vnode_if.h: ${KERN}/vnode_if.sh ${KERN}/vnode_if.src sh ${KERN}/vnode_if.sh ${KERN}/vnode_if.src --- 195,210 ---- .if !target(load) ! load: unload ${PROG} ${MODLOAD} -o ${KMOD} -e${KMOD} ${PROG} .endif .if !target(unload) unload: ${PROG} ! -${MODUNLOAD} -n ${KMOD:_mod=} .endif ! KERN?= ${.CURDIR}/../../sys/kern vnode_if.h: ${KERN}/vnode_if.sh ${KERN}/vnode_if.src sh ${KERN}/vnode_if.sh ${KERN}/vnode_if.src