diff options
| author | Mike Smith <msmith@FreeBSD.org> | 2002-01-11 01:11:44 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 2002-01-11 01:11:44 +0000 |
| commit | 93f03548500fbe1dda5140d30fe8a48d4686ed70 (patch) | |
| tree | a4c8e1fc076acea8ad0ccd3472608709b466c5a8 | |
| parent | 6ebf6db56e645ed04de5d422e735034248579423 (diff) | |
Notes
| -rw-r--r-- | sys/conf/kmod.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 72e93a16b9b2..dbec48f6a43a 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -52,8 +52,8 @@ # This file contains a default list of interfaces. # # EXPORT_SYMS A list of symbols that should be exported from the module, -# or the name of a file containing a list of symbols, or NO -# to export no symbols. If missing, all global symbols are +# or the name of a file containing a list of symbols, or YES +# to export all symbols. If not defined, no symbols are # exported. # # +++ targets +++ @@ -153,13 +153,15 @@ ${PROG}: ${FULLPROG} ${FULLPROG}: ${KMOD}.kld ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld -.if defined(EXPORT_SYMS) +EXPORT_SYMS?= NO +.if ${EXPORT_SYMS} != YES CLEANFILES+= ${.OBJDIR}/export_syms .endif ${KMOD}.kld: ${OBJS} ${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS} .if defined(EXPORT_SYMS) +.if ${EXPORT_SYMS} != YES .if ${EXPORT_SYMS} == NO touch ${.OBJDIR}/export_syms .elif !exists(${.CURDIR}/${EXPORT_SYMS}) @@ -169,7 +171,8 @@ ${KMOD}.kld: ${OBJS} .endif awk -f ${SYSDIR}/conf/kmod_syms.awk ${.TARGET} \ ${.OBJDIR}/export_syms | \ - xargs -t -J% ${OBJCOPY} % ${.TARGET} + xargs -J% ${OBJCOPY} % ${.TARGET} +.endif .endif |
