summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-07-22 09:56:45 +0000
committermarius <marius@FreeBSD.org>2008-07-22 09:56:45 +0000
commitf3fc48dfb6e48d472aeae39d972853c63515b520 (patch)
tree6b8761b28a06706deeba74c857bb5bb6201829f2 /sys/modules
parentc79e409a88995679f94d46c13e8ecc9c0fc69f88 (diff)
downloadFreeBSD-src-f3fc48dfb6e48d472aeae39d972853c63515b520.zip
FreeBSD-src-f3fc48dfb6e48d472aeae39d972853c63515b520.tar.gz
For sun4v ensure there is an opt_global.h with SUN4V defined included,
even for the stand-alone build.
Diffstat (limited to 'sys/modules')
-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 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>
OpenPOWER on IntegriCloud