mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Support the "install.debug" and "reinstall.debug" targets for kernel modules.
Small tweaks to kldxref may be necessary to avoid the surprising (but harm- less) behaviour of 'kldload foo' loading foo.ko.debug instead of foo.ko if it is present in the kernel directory. Approved by: a week of silence on -arch MFC after: 2 weeks
This commit is contained in:
parent
4730796ca1
commit
a4c0058691
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85570
@ -88,7 +88,8 @@ ${SUBDIR}::
|
||||
|
||||
|
||||
.for __target in all all-man checkdpadd clean cleandepend cleandir depend lint \
|
||||
maninstall obj objlink regress tags
|
||||
maninstall obj objlink regress tags \
|
||||
install.debug reinstall.debug
|
||||
.if !target(${__target})
|
||||
${__target}: _SUBDIRUSE
|
||||
.endif
|
||||
|
@ -340,11 +340,11 @@ modules-cleandir:
|
||||
modules-tags:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} tags
|
||||
|
||||
modules-install modules-install.debug:
|
||||
modules-install modules-reinstall:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
|
||||
modules-reinstall modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
modules-install.debug modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install.debug
|
||||
|
||||
config.o:
|
||||
${NORMAL_C}
|
||||
|
@ -298,11 +298,11 @@ modules-cleandir:
|
||||
modules-tags:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} tags
|
||||
|
||||
modules-install modules-install.debug:
|
||||
modules-install modules-reinstall:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
|
||||
modules-reinstall modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
modules-install.debug modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install.debug
|
||||
|
||||
config.o:
|
||||
${NORMAL_C}
|
||||
|
@ -310,11 +310,11 @@ modules-cleandir:
|
||||
modules-tags:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} tags
|
||||
|
||||
modules-install modules-install.debug:
|
||||
modules-install modules-reinstall:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
|
||||
modules-reinstall modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
modules-install.debug modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install.debug
|
||||
|
||||
config.o:
|
||||
${NORMAL_C}
|
||||
|
@ -302,11 +302,11 @@ modules-cleandir:
|
||||
modules-tags:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} tags
|
||||
|
||||
modules-install modules-install.debug:
|
||||
modules-install modules-reinstall:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
|
||||
modules-reinstall modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
modules-install.debug modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install.debug
|
||||
|
||||
config.o:
|
||||
${NORMAL_C}
|
||||
|
@ -307,11 +307,11 @@ modules-cleandir:
|
||||
modules-tags:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} tags
|
||||
|
||||
modules-install modules-install.debug:
|
||||
modules-install modules-reinstall:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
|
||||
modules-reinstall modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
modules-install.debug modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install.debug
|
||||
|
||||
config.o:
|
||||
${NORMAL_C}
|
||||
|
@ -312,11 +312,11 @@ modules-cleandir:
|
||||
modules-tags:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} tags
|
||||
|
||||
modules-install modules-install.debug:
|
||||
modules-install modules-reinstall:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
|
||||
modules-reinstall modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install
|
||||
modules-install.debug modules-reinstall.debug:
|
||||
cd $S/modules ; env ${MKMODULESENV} ${MAKE} install.debug
|
||||
|
||||
config.o:
|
||||
${NORMAL_C}
|
||||
|
@ -212,6 +212,10 @@ _INSTALLFLAGS:= ${INSTALLFLAGS}
|
||||
_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}}
|
||||
.endfor
|
||||
|
||||
install.debug: _SUBDIR
|
||||
${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
|
||||
${_INSTALLFLAGS} ${FULLPROG} ${DESTDIR}${KMODDIR}/
|
||||
|
||||
realinstall: _SUBDIR
|
||||
${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
|
||||
${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/
|
||||
|
Loading…
Reference in New Issue
Block a user