diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2018-04-06 17:35:35 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2018-04-06 17:35:35 +0000 |
commit | 6469bdcdb6a5968dc7edfcfb495d427b4bfdb3dd (patch) | |
tree | 91aa218d5c7ba678789e2d491820dfe1e29122b4 /sys/modules/dtrace/dtraceall/Makefile | |
parent | d9b41671bfa3cde03ac3795ef8320e718de20086 (diff) |
Move most of the contents of opt_compat.h to opt_global.h.
opt_compat.h is mentioned in nearly 180 files. In-progress network
driver compabibility improvements may add over 100 more so this is
closer to "just about everywhere" than "only some files" per the
guidance in sys/conf/options.
Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset of
sys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.h
is created on all architectures.
Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control the
set of compiled files.
Reviewed by: kib, cem, jhb, jtl
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14941
Notes
Notes:
svn path=/head/; revision=332122
Diffstat (limited to 'sys/modules/dtrace/dtraceall/Makefile')
-rw-r--r-- | sys/modules/dtrace/dtraceall/Makefile | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/modules/dtrace/dtraceall/Makefile b/sys/modules/dtrace/dtraceall/Makefile index cf081b9822dd..c331a1f53f0b 100644 --- a/sys/modules/dtrace/dtraceall/Makefile +++ b/sys/modules/dtrace/dtraceall/Makefile @@ -3,17 +3,10 @@ SYSDIR?= ${SRCTOP}/sys KMOD= dtraceall -SRCS= dtraceall.c opt_compat.h opt_nfs.h +SRCS= dtraceall.c opt_nfs.h CFLAGS+= -I${SYSDIR} -.if !defined(KERNBUILDDIR) -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "mips64" -opt_compat.h: - echo "#define COMPAT_FREEBSD32 1" >> ${.TARGET} -.endif -.endif - .include <bsd.kmod.mk> CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h |