svn commit: r205123 - projects/altix/sys/conf
Marcel Moolenaar
marcel at FreeBSD.org
Sat Mar 13 16:15:16 UTC 2010
Author: marcel
Date: Sat Mar 13 16:15:15 2010
New Revision: 205123
URL: http://svn.freebsd.org/changeset/base/205123
Log:
Build kernel modules as relocatable objects. They are much
more easy to work with in a NUMA environment.
This commit effectively breaks module support. The breakage
is fixed when the loader and kernel know how to load and
relocate the object files on ia64.
Modified:
projects/altix/sys/conf/kmod.mk
Modified: projects/altix/sys/conf/kmod.mk
==============================================================================
--- projects/altix/sys/conf/kmod.mk Sat Mar 13 15:10:07 2010 (r205122)
+++ projects/altix/sys/conf/kmod.mk Sat Mar 13 16:15:15 2010 (r205123)
@@ -178,7 +178,8 @@ ${PROG}.symbols: ${FULLPROG}
${OBJCOPY} --only-keep-debug ${FULLPROG} ${.TARGET}
.endif
-.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != mips
+.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != ia64 && \
+ ${MACHINE_ARCH} != mips
${FULLPROG}: ${KMOD}.kld
${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld
.if !defined(DEBUG_FLAGS)
@@ -191,7 +192,8 @@ EXPORT_SYMS?= NO
CLEANFILES+= export_syms
.endif
-.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != mips
+.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != ia64 && \
+ ${MACHINE_ARCH} != mips
${KMOD}.kld: ${OBJS}
.else
${FULLPROG}: ${OBJS}
@@ -211,7 +213,8 @@ ${FULLPROG}: ${OBJS}
.endif
.endif
.if !defined(DEBUG_FLAGS) && \
- (${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == mips)
+ (${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == ia64 || \
+ ${MACHINE_ARCH} == mips)
${OBJCOPY} --strip-debug ${.TARGET}
.endif
More information about the svn-src-projects
mailing list