mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 03:13:02 -05:00
DTrace includes assym.s, to build this we build assym.o, however this is unneeded as assym.s only contains macros. Remove the need to build this by removing it from OBJS, but keep assym.s in the module dependencies via DPSRCS. This fixes the build when there is no assembler, e.g. on arm64 without the external binutils. Submitted by: andrew MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10041
65 lines
1.5 KiB
Makefile
65 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?= ${SRCTOP}/sys
|
|
|
|
ARCHDIR= ${MACHINE_CPUARCH}
|
|
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace
|
|
.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern
|
|
.PATH: ${SYSDIR}/cddl/kern
|
|
.PATH: ${SYSDIR}/cddl/dev/dtrace
|
|
.PATH: ${SYSDIR}/cddl/dev/dtrace/${ARCHDIR}
|
|
|
|
KMOD= dtrace
|
|
SRCS= dtrace.c \
|
|
dtrace_xoroshiro128_plus.c \
|
|
dtrace_asm.S \
|
|
dtrace_subr.c
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
|
.PATH: ${SYSDIR}/cddl/dev/dtrace/x86
|
|
SRCS+= dis_tables.c \
|
|
instr_size.c
|
|
CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel \
|
|
-I${SYSDIR}/cddl/dev/dtrace/x86
|
|
.endif
|
|
|
|
SRCS+= bus_if.h device_if.h vnode_if.h
|
|
|
|
# Needed for dtrace_asm.S
|
|
DPSRCS+= assym.s
|
|
|
|
# These are needed for assym.s
|
|
SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
|
|
|
|
#This is needed for dtrace.c
|
|
SRCS += opensolaris_taskq.c
|
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
SRCS+= opt_apic.h
|
|
.endif
|
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \
|
|
-I${SYSDIR}/cddl/dev/dtrace \
|
|
-I${SYSDIR}/cddl/dev/dtrace/${ARCHDIR} \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/common/util \
|
|
-I${SYSDIR} -DDIS_MEM
|
|
|
|
CFLAGS+= -DSMP
|
|
|
|
EXPORT_SYMS= dtrace_register \
|
|
dtrace_unregister \
|
|
dtrace_probe_lookup
|
|
|
|
dtrace_asm.o: assym.s
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|
|
|
|
CWARNFLAGS+= -Wno-parentheses
|
|
CWARNFLAGS+= -Wno-uninitialized
|
|
CWARNFLAGS+= -Wno-cast-qual
|
|
CWARNFLAGS+= -Wno-unused
|