Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 1997 18:18:49 -0800 (PST)
From:      Joshua Peck Macdonald <jmacd>
To:        hackers
Subject:   bsd.kmod.mk
Message-ID:  <199702150218.SAA20769@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702150218.SAA20769>