Prefer the opt_global.h from KERNBUILDDIR if existent so we obtain all

macros that might be relevant.
This commit is contained in:
Marius Strobl 2008-07-24 14:07:52 +00:00
parent d3508f91ee
commit 85f57c4d48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180781

View File

@ -19,11 +19,16 @@ SRCS+= bus_if.h device_if.h
.if ${MACHINE} == "sun4v"
SRCS+= opt_global.h
.if defined(KERNBUILDDIR)
MKDEP= -include ${KERNBUILDDIR}/opt_global.h
.else
CFLAGS+= -include opt_global.h
MKDEP= -include opt_global.h
opt_global.h:
echo "#define SUN4V 1" > ${.TARGET}
.endif
.endif
.include <bsd.kmod.mk>