diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2008-08-07 11:22:24 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2008-08-07 11:22:24 +0000 |
| commit | 9c0c63ed5778dbb5aa0c7d22c012a0792bb2f784 (patch) | |
| tree | e2520f6cbd05ed1fe91ad4438ccdb45cab44844e /sys/modules | |
| parent | 81f2850431356bc2ba5989422caed09e2b072fae (diff) | |
Notes
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/mem/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile index f803994ba947..812da1439363 100644 --- a/sys/modules/mem/Makefile +++ b/sys/modules/mem/Makefile @@ -17,4 +17,18 @@ SRCS+= amd64_mem.c .endif 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> |
