mirror of
https://github.com/opnsense/src.git
synced 2026-03-13 06:02:46 -04:00
- Suppress -Wredundant-decls. Ultimately this warning is harmless in any case, and it does not look like there is a simple way to avoid redundant declarations in this case without a lot of header pollution (e.g. having openzfs's shim param.h pulling in sys/kernel.h for hz). - Suppress -Wnested-externs, which is useless anyway. Unfortunately it was not sufficient just to modify OPENZFS_CFLAGS, because the warning suppressions need to appear on the command line after they are explicitly enabled by CWARNFLAGS from sys/conf/kern.mk, but OPENZFS_CFLAGS get added before due to use of -I for the shims. Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D27685
37 lines
815 B
Makefile
37 lines
815 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?= ${SRCTOP}/sys
|
|
|
|
.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern
|
|
.PATH: ${SYSDIR}/contrib/openzfs/module/os/freebsd/spl
|
|
|
|
KMOD= opensolaris
|
|
SRCS= vnode_if.h \
|
|
opensolaris.c \
|
|
opensolaris_proc.c \
|
|
spl_cmn_err.c \
|
|
spl_kmem.c \
|
|
spl_misc.c \
|
|
spl_sunddi.c
|
|
|
|
_A=${SYSDIR}/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
|
|
.endif
|
|
|
|
CFLAGS+= ${OPENZFS_CFLAGS}
|
|
|
|
EXPORT_SYMS= cpu_core
|
|
|
|
IGNORE_PRAGMA= 1
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|
|
CWARNFLAGS+= ${OPENZFS_CWARNFLAGS}
|