For sun4v ensure there is an opt_global.h with SUN4V defined included,

even for the stand-alone build.
This commit is contained in:
Marius Strobl 2008-07-22 09:56:45 +00:00
parent 7cff8ceafb
commit 109c391928
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180686

View File

@ -17,4 +17,13 @@ SRCS+= amd64_mem.c
.endif
SRCS+= bus_if.h device_if.h
.if ${MACHINE} == "sun4v"
SRCS+= opt_global.h
CFLAGS+= -include opt_global.h
MKDEP= -include opt_global.h
opt_global.h:
echo "#define SUN4V 1" > ${.TARGET}
.endif
.include <bsd.kmod.mk>