Prefer the opt_global.h from KERNBUILDDIR if existent so we obtain all
macros that might be relevant.
This commit is contained in:
parent
d3508f91ee
commit
85f57c4d48
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180781
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user