When building a debugging kernel with modules, build modules with

debugging support as well.

This relies on support added in rev 1.105 to kmod.mk.

Requested by:	peter
This commit is contained in:
Sheldon Hearn 2001-08-02 10:56:59 +00:00
parent f5974d336f
commit 2cc33d7946
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81037
4 changed files with 12 additions and 0 deletions

View File

@ -314,6 +314,9 @@ MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
.if defined(DEBUG)
MKMODULESENV+= DEBUG="${DEBUG}" DEBUG_FLAGS="${DEBUG}"
.endif
modules:
@mkdir -p ${.OBJDIR}/modules

View File

@ -277,6 +277,9 @@ MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
.if defined(DEBUG)
MKMODULESENV+= DEBUG="${DEBUG}" DEBUG_FLAGS="${DEBUG}"
.endif
modules:
@mkdir -p ${.OBJDIR}/modules

View File

@ -270,6 +270,9 @@ install.debug: modules-install.debug
reinstall: modules-reinstall
reinstall.debug: modules-reinstall.debug
.endif
.if defined(DEBUG)
MKMODULESENV+= DEBUG="${DEBUG}" DEBUG_FLAGS="${DEBUG}"
.endif
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)

View File

@ -275,6 +275,9 @@ MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
.if defined(DEBUG)
MKMODULESENV+= DEBUG="${DEBUG}" DEBUG_FLAGS="${DEBUG}"
.endif
modules:
@mkdir -p ${.OBJDIR}/modules