Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kmod.mk
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | .if defined(PREFIX_SYMS) | ||||
${AWK} -v prefix=${PREFIX_SYMS} -f ${SYSDIR}/conf/kmod_syms_prefix.awk \ | ${AWK} -v prefix=${PREFIX_SYMS} -f ${SYSDIR}/conf/kmod_syms_prefix.awk \ | ||||
${.TARGET} /dev/null | xargs -J% ${OBJCOPY} % ${.TARGET} | ${.TARGET} /dev/null | xargs -J% ${OBJCOPY} % ${.TARGET} | ||||
.endif | .endif | ||||
.if !defined(DEBUG_FLAGS) && ${__KLD_SHARED} == no | .if !defined(DEBUG_FLAGS) && ${__KLD_SHARED} == no | ||||
${OBJCOPY} --strip-debug ${.TARGET} | ${OBJCOPY} --strip-debug ${.TARGET} | ||||
.endif | .endif | ||||
_ILINKS=machine | _ILINKS=machine | ||||
CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include | |||||
.if ${MACHINE} != ${MACHINE_CPUARCH} && ${MACHINE} != "arm64" | .if ${MACHINE} != ${MACHINE_CPUARCH} && ${MACHINE} != "arm64" | ||||
_ILINKS+=${MACHINE_CPUARCH} | _ILINKS+=${MACHINE_CPUARCH} | ||||
CFLAGS+= -fdebug-prefix-map=./${MACHINE_CPUARCH}=${SYSDIR}/${MACHINE_CPUARCH}/include | |||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | ||||
_ILINKS+=x86 | _ILINKS+=x86 | ||||
CFLAGS+= -fdebug-prefix-map=./x86=${SYSDIR}/x86/include | |||||
.endif | .endif | ||||
CLEANFILES+=${_ILINKS} | CLEANFILES+=${_ILINKS} | ||||
# Ensure that DWARF info contains a full path for auto-generated headers. | |||||
CFLAGS+= -fdebug-prefix-map=.=${.OBJDIR} | |||||
all: ${PROG} | all: ${PROG} | ||||
beforedepend: ${_ILINKS} | beforedepend: ${_ILINKS} | ||||
beforebuild: ${_ILINKS} | beforebuild: ${_ILINKS} | ||||
# Ensure that the links exist without depending on it when it exists which | # Ensure that the links exist without depending on it when it exists which | ||||
# causes all the modules to be rebuilt when the directory pointed to changes. | # causes all the modules to be rebuilt when the directory pointed to changes. | ||||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |