Prefer the opt_global.h from KERNBUILDDIR if existent so we obtain all
macros that might be relevant.
This commit is contained in:
parent
424364633e
commit
a1ffd780f3
@ -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…
x
Reference in New Issue
Block a user