1# $FreeBSD$ 2 3SYSDIR?= ${SRCTOP}/sys 4 5.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern 6.PATH: ${SYSDIR}/contrib/openzfs/module/os/freebsd/spl 7 8KMOD= opensolaris 9SRCS= vnode_if.h \ 10 opensolaris.c \ 11 opensolaris_proc.c \ 12 spl_cmn_err.c \ 13 spl_kmem.c \ 14 spl_misc.c \ 15 spl_sunddi.c 16 17_A=${SYSDIR}/cddl/contrib/opensolaris/common/atomic 18.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S) 19.PATH: ${_A}/${MACHINE_CPUARCH} 20SRCS+= opensolaris_atomic.S 21.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S) 22.PATH: ${_A}/${MACHINE_ARCH} 23SRCS+= opensolaris_atomic.S 24.else 25SRCS+= opensolaris_atomic.c 26.endif 27 28CFLAGS+= ${OPENZFS_CFLAGS} 29 30EXPORT_SYMS= cpu_core 31 32IGNORE_PRAGMA= 1 33 34.include <bsd.kmod.mk> 35 36CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h 37CWARNFLAGS+= ${OPENZFS_CWARNFLAGS} 38