From f613d35061dd61535d3952c232cf25803198a13c Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Sat, 17 Jul 2010 13:34:01 +0000 Subject: Add OpenSolaris atomics for powerpc64 and connect ZFS to the build on this platform. Reviewed by: pjd --- sys/modules/Makefile | 9 +++++++++ sys/modules/opensolaris/Makefile | 2 +- sys/modules/zfs/Makefile | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'sys/modules') diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 180bb10..ea0c748 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -624,6 +624,15 @@ _smbfs= smbfs _sound= sound .endif +.if ${MACHINE_ARCH} == "powerpc64" +.if ${MK_CDDL} != "no" || defined(ALL_MODULES) +_opensolaris= opensolaris +.endif +.if ${MK_ZFS} != "no" || defined(ALL_MODULES) +_zfs= zfs +.endif +.endif + .if ${MACHINE_ARCH} == "sparc64" _auxio= auxio _em= em diff --git a/sys/modules/opensolaris/Makefile b/sys/modules/opensolaris/Makefile index a0f08fb..eef8ffd 100644 --- a/sys/modules/opensolaris/Makefile +++ b/sys/modules/opensolaris/Makefile @@ -8,7 +8,7 @@ SRCS= opensolaris.c \ opensolaris_kmem.c \ opensolaris_misc.c -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64" +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc64" .PATH: ${.CURDIR}/../../cddl/contrib/opensolaris/common/atomic/${MACHINE_ARCH} SRCS+= opensolaris_atomic.S .else diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile index edd492e..e4cf297 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -27,7 +27,7 @@ SRCS+= opensolaris_uio.c SRCS+= opensolaris_vfs.c SRCS+= opensolaris_zone.c -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64" +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc64" .PATH: ${SUNW}/common/atomic/${MACHINE_ARCH} SRCS+= opensolaris_atomic.S .else -- cgit v1.1