mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Simplify atomic selection
This commit is contained in:
parent
c614f4e2db
commit
80dfae5fe2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212543
@ -8,8 +8,12 @@ SRCS= opensolaris.c \
|
||||
opensolaris_kmem.c \
|
||||
opensolaris_misc.c
|
||||
|
||||
.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}
|
||||
_A=${.CURDIR}/../../cddl/contrib/opensolaris/common/atomic
|
||||
.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S)
|
||||
.PATH: ${_A}/${MACHINE_CPUARCH}
|
||||
SRCS+= opensolaris_atomic.S
|
||||
.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S)
|
||||
.PATH: ${_A}/${MACHINE_ARCH}
|
||||
SRCS+= opensolaris_atomic.S
|
||||
.else
|
||||
SRCS+= opensolaris_atomic.c
|
||||
|
@ -27,12 +27,15 @@ 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" || ${MACHINE_ARCH} == "powerpc64"
|
||||
.PATH: ${SUNW}/common/atomic/${MACHINE_ARCH}
|
||||
SRCS+= opensolaris_atomic.S
|
||||
_A=${.CURDIR}/../../cddl/contrib/opensolaris/common/atomic
|
||||
.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S)
|
||||
.PATH: ${_A}/${MACHINE_CPUARCH}
|
||||
SRCS+= opensolaris_atomic.S
|
||||
.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S)
|
||||
.PATH: ${_A}/${MACHINE_ARCH}
|
||||
SRCS+= opensolaris_atomic.S
|
||||
.else
|
||||
.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
|
||||
SRCS+= opensolaris_atomic.c
|
||||
SRCS+= opensolaris_atomic.c
|
||||
.endif
|
||||
|
||||
.PATH: ${SUNW}/uts/common/fs
|
||||
|
Loading…
Reference in New Issue
Block a user