summaryrefslogtreecommitdiff
path: root/sys/modules/mem
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2008-07-22 09:56:45 +0000
committerMarius Strobl <marius@FreeBSD.org>2008-07-22 09:56:45 +0000
commit109c391928c7baec63309f602e64f854f1b1203b (patch)
tree6b8761b28a06706deeba74c857bb5bb6201829f2 /sys/modules/mem
parent7cff8ceafb7460585b63f4488d187fb94b928ed1 (diff)
Notes
Diffstat (limited to 'sys/modules/mem')
-rw-r--r--sys/modules/mem/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile
index f803994ba947..7f43d0c56b8f 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>