diff options
-rw-r--r-- | sys/modules/mem/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile index f803994..7f43d0c 100644 --- a/sys/modules/mem/Makefile +++ b/sys/modules/mem/Makefile @@ -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> |